Date: Mon, 28 Apr 2008 11:32:55 -0500 From: Brooks Davis <brooks@freebsd.org> To: Walter Venable <weaseal@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: Building new port, don't want to run as root Message-ID: <20080428163255.GC40940@lor.one-eyed-alien.net> In-Reply-To: <4815FB00.1010702@gmail.com> References: <48132E31.8080204@gmail.com> <4814346A.5040207@infracaninophile.co.uk> <4815FB00.1010702@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--5G06lTa6Jq83wMTw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 28, 2008 at 07:27:44PM +0300, Walter Venable wrote: > 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 simpl= e. >>=20 >> To make rc.subr start a process using a different UserID, all you need to >> do is define variables >>=20 >> name =3D foo <-- standard rc script thing to >> setup the namespace >> foo_user =3D someone >> foo_group =3D somegroup > Ok, silly question, but I looked around again and hit another brick wall = --=20 > how do I make the port add a user that doesn't already exist? http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-uid-= and-gids.html -- Brooks --5G06lTa6Jq83wMTw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIFfw2XY6L6fI4GtQRAvGyAJ0YBgqj7VKUcMnc3RrVFvr62Ns8YQCeMUM3 +8wVfeURN+ijcxGYdhFeVQU= =PaVD -----END PGP SIGNATURE----- --5G06lTa6Jq83wMTw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080428163255.GC40940>