Date: Mon, 28 Apr 2008 19:27:44 +0300 From: Walter Venable <weaseal@gmail.com> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: freebsd-ports@freebsd.org Subject: Re: Building new port, don't want to run as root Message-ID: <4815FB00.1010702@gmail.com> In-Reply-To: <4814346A.5040207@infracaninophile.co.uk> References: <48132E31.8080204@gmail.com> <4814346A.5040207@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Seaman wrote: > I take it you're talking about a daemon process and you want to have the > rc.subr scripts start it as another user than root? That's fairly > simple. > > To make rc.subr start a process using a different UserID, all you need to > do is define variables > > name = foo <-- standard rc script thing to > setup the namespace > foo_user = someone > foo_group = somegroup Ok, silly question, but I looked around again and hit another brick wall -- how do I make the port add a user that doesn't already exist?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4815FB00.1010702>