Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We started an Ubuntuserver for versioncontrol and would like to access our repositories via ssh.
As we need to give access to several external developers I thought it would be the best way to create a group per project and add the users to it which should use the repository. I cannot say how many projects will be created in the future, so I wonder if we could run into problems later.

Is there a maximum number of existing groups or groups of which a user can be member of in Ubuntu 12.04?

share|improve this question
up vote 4 down vote accepted

Yes, there are limits. Linux now supports 65536 groups but you will need to use ACLs and RPCSEC_GSS and NFS version 4.0 or higher if you need more than 16 since AUTH_SYS historically has a limit of 16 groups.

Besides the NFS<4.0 limit of 16:

  • Linux Kernel >= 2.6.3: 65536
  • Linux Kernel < 2.6.3: 32
share|improve this answer
Narf. I guess we need to reconsider that...many thanks, especially for the helful links! – 32bitfloat May 25 '13 at 22:54

The maximum number of groups is up to 232 starting with version 2.6.0 of the Linux kernel, like the maximum number of users. Still, one user can be a member of at maximum 32 groups on a modern linux.

share|improve this answer
quoting another answer that has no documentation on the 32 groups? 32 is kernel 2.6 and lower. Plus there is a link in the answer pointing to a max of 65536 groups. – Rinzwind May 25 '13 at 21:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.