Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

max number of members per group?

Status
Not open for further replies.

westwind

Technical User
Aug 7, 2002
1
US
What's the max number of members to one group allowed?
Please respond a copy to onj@mtmc.army.mil.
Thanks a bunch folks

 
I believe you will hit the line-length limit of vi before you find the limit you speak of. IBM Certified -- AIX 4.3 Obfuscation
 
If you are using NIS and yppush then the limit is 1024 characters. If you hit this limit you just need to make a second group with the same GID and split them up in order to do the yppush. If you are just adding them to a standalone node without NIS then the limit is large and should not be an issue.

Hope that helps,

Tcorum
 
Actually if you are not using NIS, then the line limit starting with AIX 4.3.3 and with AIX 5.1 is 2048 characters if you vi the file, but if you don't vi the file, then you can have more users per group on a line.
The easier way to solve the problem is to split the /etc/group file so that the lines can be edited. You can use split to do this. Then you can add a new group name, but use the same group ID. For example to add more people to the 'staff' group use a line
like

staff1:!:1:member5000,member5001,mebmer5002

If you list the user member5000, then it will show 'staff' as the group becaus staff is earlier in the file with GID of 1.
lsuser member5001
lsgroup staff or lsgroup staff1
will show all the users in the staff group from both lines. You can have multiple
lines and they do not need to be contiguous.
 
Or you can install ViM for AIX which will handle much longer lines. We do this to accomodate large /etc/export files. IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top