Custom scripts files locations?
jerrymc at msu.edu
Fri Mar 9 21:12:05 UTC 2007
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 188.8.131.52 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.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions