Date: Fri, 19 Jan 2007 14:55:40 -0800 From: "Greg Albrecht" <gregoryba@gmail.com> To: "Don Munyak" <don.munyak@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: startup script with non-root user Message-ID: <39ed86f90701191455y821a960hf95ea27a544b110f@mail.gmail.com> In-Reply-To: <6207f7d90701191429x4ce667afyf4cf53d9388c7381@mail.gmail.com> References: <6207f7d90701191429x4ce667afyf4cf53d9388c7381@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
according to rc.subr(8):
${name}_user
User to run command as, using chroot(8). if
${name}_chroot is set, otherwise uses su(1). Only
supported after /usr is mounted.
so in your /etc/rc.conf you could put:
hobbit_enable=YES
hobbit_user="hobbit"
-g
On 19/01/07, Don Munyak <don.munyak@gmail.com> wrote:
> Hello,
>
> I have an application I'd like to startup at boot, however, the script
> needs to be started by a non-user account.
>
> If I put the startup script in /usr/local/etc/rc.d/hobbit.sh
>
> How do I get it to start using the user account 'hobbit'
>
> Thanks
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
--
Greg Albrecht (gregoryba@gmail.com)
An Indie, Hip Hop and IDM Podcast: The Letter G
http://theletterg.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39ed86f90701191455y821a960hf95ea27a544b110f>
