User/Group ID assignment

Mikolaj Izdebski mizdebsk at redhat.com
Tue Oct 22 12:58:17 UTC 2013


On 10/22/2013 01:43 PM, Mateusz Marzantowicz wrote:
> Thanks, that is the list I was looking for. Is there any mechanism to
> assign first available id from "less than 999" pool or should I manually
> find the right number? I understand that dynamic assignment is done by
> package manager, but I don't want to rebuild and reinstall rpm package
> for now on.

Dynamic assignment is done by adduser tool.  adduser -r will create user
with UID 999 if available, if not then 998 and so on.  Basically adduser
-r chooses UIDs from SYS_UID_MIN to SYS_UID_MAX, as defined in
/etc/login.defs

-- 
Mikolaj Izdebski
IRC: mizdebsk


More information about the devel mailing list