startup scripts in /usr/local/etc/rc.d

David Bear David.Bear at asu.edu
Thu Dec 11 16:35:26 PST 2003


I am wondering if scripts in /usr/local/etc/rc.d MUST be owned by root
in order to be run.

If I have a daemon on want started, AND I want it to run as user
"DORK", can I have the binary and the startscript owned by user "DORK"
in order to have it started that way?

the more I think about this, the more I get confused...

If a startup script lives in /usr/local/etc/rc.d does its ownership
determine the ownership of the process it starts?

or is the the owner of the binary the script starts that determines
the owner of the process

And, if it needs to change ownership, is it up to the program itself
to change who it runs as?  

-- 
David Bear
phone: 	480-965-8257
fax: 	480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 "Beware the IP portfolio, everyone will be suspect of trespassing"


More information about the freebsd-questions mailing list