I have several questions about linux groups
- Is there a limit to the number of groups a user can create?
- Is there a limit to the total number of groups in a system?
- Is there a limit to the number of groups a user may be a member of?
- Do large numbers of groups (and users as well) degrade performance? Will 1000 users with 1000 groups each be substantially slower than 1 user and no groups (discluding system generated users/groups)
I'm trying to come up with a website that bridges the gap between SQL user databses and actual linux users.
Best Answer
Users can't create groups, only the superuser can. And the superuser can create up to the system maximum minus existing groups.
Modern Linuxes have a 32-bit
gid_t
, so just short of 4.3e9.Depends completely on the NSS being used. I don't think the
files
NSS has a limit.Again, depends on the NSS. Using something like LDAP would be faster than
files
obviously.