1832957 Members
2368 Online
110048 Solutions
New Discussion

Maximum amount of groups

 
Dario_1
Trusted Contributor

Maximum amount of groups

Is there a maximum amount of groups that can be created in HP-UX? Is there a Kernel Parameter that I have to change to be able to create more than 20 groups? Thank you for your help.
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: Maximum amount of groups

The answer is essentially no but limited by the number of bits in a gid_t variable. For all intents and purposes, you can have as many as you like. What you may be referring to is the number of multiple groups to which a user may belong.
If it ain't broke, I can fix that.
Jeff Machols
Esteemed Contributor

Re: Maximum amount of groups

you can create way more than 20. are you getting an error when you try to create one a group? Or are you getting the error assign a user to more than 20 groups?
Dario_1
Trusted Contributor

Re: Maximum amount of groups

Yes I am having the problem when I try to assign a user to more than 20 groups. Also as a matter of more info. my /etc/group is linked to logingroup. Tkx again
Ajay Sishodia
Frequent Advisor

Re: Maximum amount of groups


For 10.20

- For local file access, not using NFS, the limit is 20.
- For remote file access, using NFS, the limit is 16.


20 groups per user is still the limit at HP-UX 11.0.

Ajay
Wodisch
Honored Contributor

Re: Maximum amount of groups

Hello Dario,

take into account that some commands do NOT work correctly any more, if you are member of too many groups...
E.g. the whole bunch of PFS (Portable File System, needed for modern CD-ROMs) does only allow up to 8 groups for "root"!

Just my ???0.02,
Wodisch
Patrick Wallek
Honored Contributor

Re: Maximum amount of groups

From TKB document: UNX1100174

Problem Description

Is the maximum number of groups to which a user can belong simultaneously still limited to 20 (defined by NGROUPS) in HP-UX 11.0?

Solution

Yes, 20 groups per user is still
the limit at HP-UX 11.0.