Date: Thu, 06 Jan 2005 07:56:49 -0800 From: Tabor Kelly <tkelly-freebsd-questions@taborandtashell.net> To: "J.D. Bronson" <jbronson@wixb.com> Cc: freebsd-questions@freebsd.org Subject: Re: 5.3 - starting a process as a diff user Message-ID: <41DD5FC1.5050802@taborandtashell.net> In-Reply-To: <6.2.0.14.2.20050106080413.00c43fe8@cheyenne.wixb.com> References: <6.2.0.14.2.20050106080413.00c43fe8@cheyenne.wixb.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@taborandtashell.net
http://tabor.taborandtashell.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41DD5FC1.5050802>
