Number of groups for unix user limit change

3

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

scrat

Posted 2012-07-06T18:08:41.353

Reputation: 143

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 – 2012-07-06T21:14:35.643

Answers

2

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.

Baarn

Posted 2012-07-06T18:08:41.353

Reputation: 6 096

0

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.

Casper Dik

Posted 2012-07-06T18:08:41.353

Reputation: 1