Operating System - HP-UX
1758661 Members
2356 Online
108874 Solutions
New Discussion юеВ

Max: no of users in a group

 
RAJESH GANGADHARAN
Regular Advisor

Max: no of users in a group

hi
Is there any way to calculate max no of users in a group,
if so how we can change max no of users in a group?
from man pages we got it is defined in a variable LINE_MAX defined in and max no of users is (LINE_MAX-50)/9
how we will get the value of LINE_MAX.

thanks in advance.
rajesh
Let the choices you make today be the choices you can live with tomorrow.
3 REPLIES 3
Wieslaw Krajewski
Honored Contributor

Re: Max: no of users in a group

Hi,

Run man 5 limits

You'll find there

LINE_MAX = 2048


Rgds.
Permanent training makes master
Thierry Poels_1
Honored Contributor

Re: Max: no of users in a group

hi,
there is a workaround: if a line gets too long in your /etc/group file then just start another line and use the same group ID:

users::20:usr1,usr2,usr3,usr4,usr5,usr6
users2::20:usr7,usr8,usr9

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
RAJESH GANGADHARAN
Regular Advisor

Re: Max: no of users in a group

dear thierry
i have two querys

1) i tried the same but , i am using this for NIS , after creating map, if i am giving
ypmatch GID group.bygid it shows only one group, but if u gives ypcat it shows both groups with same gid.

2) before creating 2 groups i checked one particular line in /etc/group it was only 1004, but when we are making an NIS map of grop it is giving an error and coming out

thanks
raj
Let the choices you make today be the choices you can live with tomorrow.