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

  • 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

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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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