From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 21:12:05 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0CC2516A400 for ; Fri, 9 Mar 2007 21:12:05 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id D1CE213C4A8 for ; Fri, 9 Mar 2007 21:12:04 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l29L93Zv033066; Fri, 9 Mar 2007 16:09:03 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l29L93Re033065; Fri, 9 Mar 2007 16:09:03 -0500 (EST) (envelope-from jerrymc) Date: Fri, 9 Mar 2007 16:09:03 -0500 From: Jerry McAllister To: Andy Kendall Message-ID: <20070309210903.GA33041@gizmo.acns.msu.edu> References: <003301c7628d$3bae2dd0$4a074c0a@andypc2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003301c7628d$3bae2dd0$4a074c0a@andypc2> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Custom scripts files locations? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 21:12:05 -0000 On Fri, Mar 09, 2007 at 08:55:12PM -0000, Andy Kendall wrote: > Where should I put any scripts I write or use for the use of all system > users please? For example in the FreeBSD Manual in section 9.4.3.2 there's a > script for Network Printing; where should this reside please? Do you mean that you want some script available for any user to run at their discretion? Or that you want the system to run before any users get on so something is done for them? In the first case, probably /usr/local/bin is the most common place. In the second, /usr/local/etc/rc.d is the place to put them to have them run at boot to multi-user time. If those script in /usr/local/bin can do any thing serious, like write to people's files then you might want to make a little shell written in c to run them so the users do no run them directly, but only the binary. Then stash the actual scripts somewhere else. ////jerry > > Thanks > > Andy > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"