Subject: Re: Starting daemons in rc as non-root
To: Paulo Alexandre Pinto Pires <pappires@vortex.del.ufrj.br>
From: Aron T. Roberts <aroberts@wolfenet.com>
List: netbsd-help
Date: 08/10/1996 11:17:37
On Sat, 10 Aug 1996, Paulo Alexandre Pinto Pires wrote:

> Hello, everybody.
> 
> This is quick: how do I run daemons at startup as a non-root user,
> so that the daemon keeper can't, by any means, gain root access?
> 


I use the command "su"

i belive the man page is a little out of date in 1.1 (dunno about current)

for instance i start ircd like this:

if [ -f /usr/local/lib/ircd/ircd ]; then
	su irc -c /usr/local/lib/ircd/ircd; echo -n ' ircd'
fi

(hopefully an acceptable way to do it)


also /etc/rc is not the place to be starting locally installed daemons use
/etc/rc.local



aron roberts
aroberts@wolfenet.com