Custom scripts files locations?

Jerry McAllister jerrymc at
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 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.


> Thanks
> Andy
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list