1837069 Members
2624 Online
110111 Solutions
New Discussion

/etc/group

 
SOLVED
Go to solution
Dan Am
Frequent Advisor

/etc/group

What is the max amount of users in a given
group in /etc/group and wher is that documented ?
There seems to be a limit on about 70 .
do what you can. don't if you can't.
3 REPLIES 3
Andreas Voss
Honored Contributor

Re: /etc/group

Hi,

man group says:
The length of each line in /etc/group is limited to LINE_MAX, as defined in . The maximum number of users per group is (LINE_MAX - 50)/9.
All group IDs used in /etc/logingroup or /etc/passwd should be defined in /etc/group. No user should be associated with more than NGROUPS (see setgroups(2)) groups in /etc/logingroup.

Regards
Victor BERRIDGE
Honored Contributor

Re: /etc/group

Have a look at:
http://europe-support2.external.hp.com/cki/bin/doc.pl/sid=fcff14f304ab7d367d/screen=ckiDisplayDocument?docId=200000011495871

Problem Description
What is the size limit for a line in the /etc/group file in HP-UX 11.0?
Configuration InfoOperating System - HP-UXVersion - 11.0Hardware System -
Series -SolutionThe size limit is 2048 bytes.
MARTINACHE
Respected Contributor
Solution

Re: /etc/group

I know that thereare limits for members in a group :

"Prior to HP-UX 10.30, SAM alloed groups in /etc/group file whith up to 4000 members to be created. These large groups have never been and are still not fully supported by all of HP-UX, most notably HP-UX commands. The largest group that is fully supported by HP-UX is a group that takes up LINE_MAX (2048) characters for a group definition in the /etc/group file. SAM will still allow groups whith up to 4000 members to be created, but in HP-UX 11 it will discourage this by issuing a warning message before creating or extending a group that is over LINE_MAX characters in size".

Regards,

Patrice.
Patrice MARTINACHE