Subject: Re: Third Party User-UIDs > 1000
To: Zafer Aydogan <zafer.aydogan@googlemail.com>
From: Johnny Lam <jlam@pkgsrc.org>
List: tech-pkg
Date: 02/13/2006 13:30:59
Zafer Aydogan wrote:
> 
> I'm not a pkgsrc pro. I don't get the "create the users and groups
> beforehand" argument. How should I know, which user or group is going
> to be created ?

As mentioned somewhere else in this thread on the mailing list, if you 
set PKG_CREATE_USERGROUP=no in your /etc/mk.conf prior to doing "make 
install", or set it in your shell environment prior to running pkg_add 
on a binary package, then package installation will fail and will tell 
you which users and groups to create before the package can be installed.

> The other point is usermgmt.conf. I see that I can specify the uid
> range for new users, but that would imply non-system users aswell. 
> But my aim is to separate them. How can I accomplish this ?

I'm not familiar with the NetBSD adduser utilities, but you could 
directly edit pkgsrc/mk/install/usergroupfuncs to specify the ranges for 
the uids and gids created by pkgsrc, e.g. ${USERADD} -r 1..100, etc.

	Cheers,

	-- Johnny Lam <jlam@pkgsrc.org>