Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

In continuation of the question How Many Unix Groups Can A User Be A Member Of?: can I somehow change this limit?

share|improve this question
I am not aware how to change the limit (unless you want to fiddle with kernel code). But the limits have changed since 2.6.3, see my answer in your linked question. – Baarn Jul 6 '12 at 21:14
up vote 2 down vote accepted

As noted in my comment, the only way known to me is to change the kernel code.

You find the limit inside limits.h.

Since there have been quite some updates to the kernel it might be possible to decrease this limit with some configuration file, eg with the help of PAM.

share|improve this answer

In Solaris it can be changed in /etc/system (or /etc/system.d/<somefile> in version 11.2 or later)

set ngroups_max = <number>

Where number is between 16 and 1024; a reboot is needed if it is changed.

share|improve this answer

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.