5.3 - starting a process as a diff user

Tabor Kelly tkelly-freebsd-questions at taborandtashell.net
Thu Jan 6 07:57:11 PST 2005


J.D. Bronson wrote:
> I have a daemon that I need to start at boot under
> /usr/local/etc/rc.d
> 
> and I need it to run as a specific user.
> 
> Currently, from root, I su - {userid} and then launch it
> and then log out.
> 
> Can I make this automated in /usr/local/etc/rc.d and if so how?

This is what I have in one line of my rc.local:

su -m [user] -c '[command]'

but check the man page first.

-- 

Tabor Kelly
tkelly-freebsd-questions at taborandtashell.net
http://tabor.taborandtashell.net


More information about the freebsd-questions mailing list