Building new port, don't want to run as root

Brooks Davis brooks at freebsd.org
Mon Apr 28 16:32:45 UTC 2008


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 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?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-uid-and-gids.html

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20080428/a9580220/attachment.pgp


More information about the freebsd-ports mailing list