User IDs and Group IDs

Jeremy Huntwork jhuntwork at
Tue Nov 22 12:09:47 PST 2005

Randy McMurchy wrote:
> Tushar Teredesai wrote these words on 11/22/05 13:58 CST:
>>Instead of assigning a fixed ID number, why not define a range. For example:
>>* 1-20: Core users and groups (must have on every system). These are
>>created manually using the cat command in
>>* 21-99: For other packages.

I really like Tushar's suggestion, personally.

>>Then whenever a new user or group is needed on the system, we can use
>>the not so known switch to groupadd and useradd to automatically
>>assign the UIDs and GIDs whenever they are created:
>>* groupadd -K GID_MIN=21 -K GID_MAX=99 <groupName>
>>* useradd -K UID_MIN=21 -K UID_MAX=99 <userName>
> This was suggested, but the decision was made to hard-code UID/GIDs.

I didn't really follow that original discussion. What was the reason for 
that decision?


More information about the lfs-dev mailing list