Raising the uid and gid limits?
Posted by jeanrob98 on Wed 16 Sep 2009 at 19:08
According to Debian policy, limits for both UID and GID numbers (User IDs and Group IDs) are a maximum of 65535. Is there a way of increasing this limit?
I presume that this would break policy, but I am curious as to how this is assigned, where it can be changed.
I'd also be interested to know what software would break?
maximum allowable: 4294967295
[ Parent | Reply to this comment ]
Furthermore if you need more than 65000 users on your system you may need something that scales well when username lookups are done.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
It just uses some "uncommon" numbers so you dont have any collision. But if you know what you are doing... ;)
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
just make sure you don't clash with the nobody account which is usually at 655xx something.
[ Parent | Reply to this comment ]
Just make sure the range between UID_MIN and UID_MAX does not clash with winbind/ldap/nis/... UIDs. Normally when creating a new user with useradd, it will find the current highest UID within it's range and increment by one. If your local UID range clashes with LDAP/Winbind/NIS then you will get users sharing UIDs with unforeseen consequences.
If you are only using local users then you can go nuts with the limits, I've at least never seen any troubles when using high UIDs.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]