max size of a group in /etc/group


 
Thread Tools Search this Thread
Operating Systems AIX max size of a group in /etc/group
# 1  
Old 03-08-2007
max size of a group in /etc/group

I have several AIX servers running 5.2.

What is the default max size for a group in /etc/group?
How do I change the default max size for a group to be unlimited (if possible)?

Thanks
# 2  
Old 03-08-2007
There is a file called /usr/include/sys/limits.h - which shows system limits (not sets them)

In there, I suspect the one you are interested in is:
/* RUN-TIME INVARIANT VALUES
The system supports the following fixed magnitude limitations.
*/
#define MAX_INPUT 512 /* max bytes in terminal
input queue, >= 256+64 */

#define NGROUPS_MAX 128 /* max number of supplementary group IDs
per process, >= 0 */

now, why it says "per process" seems unusual, what limit did you hit ?
# 3  
Old 03-09-2007
here is the same line:

#define NGROUPS_MAX 128 /* max number of supplementary group IDs per process, >= 0 */

Is the 128, the number of groups a user can belong to? I'm assuming the "group IDs per process" is actually groups per user.

On our server, 16 groups is the maximum for any given user. We were told that we can adjust this number to 32, but where is this setting?
# 4  
Old 05-10-2008
Quote:
Originally Posted by antalexi
I have several AIX servers running 5.2.
What is the default max size for a group in /etc/group?
How do I change the default max size for a group to be unlimited (if possible)? Thanks
I'm sorry I can't help with the N_GROUPS_MAX question. That parameter is a limit to the number of groups of which a user can be a member. I believe your original question quoted above is about the number of members a group can have which is sort of 90 degrees different.

I also would like to know if there is a limit on the line length of lines in /etc/group. I believe there is and that it is about 1000 characters but search as I have I cannot find any information about it. It may be that there is a limit imposed by ypmake which promulgates the /etc/group file.

Did you find an answer to your original question?

Can anybody advise where else I could look to find the answer?

Thx
# 5  
Old 05-11-2008
Quote:
Originally Posted by antalexi
[...]What is the default max size for a group in /etc/group?
How do I change the default max size for a group to be unlimited (if possible)?[...]
IIRC there are problems when the maximum length of a line in /etc/groups exceeds 2048 chars (think limit depends on the tool (NIS,vi,grep ...) one uses for editing this file). To get by this you could define several group names which all have the same group ID with each line length staying below the limit. This will lead to all users belonging to the same group.
group01:400:nancy,shirley,tina,ethel,....
group02:400:anne,doreen,emma,herriette,....
group03:400:amy,dorothea,carly,donna,....
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Filter Row Based On Max Column Value After Group BY

Hello Team, Need your expertise on following: Here is the set of data: C1|4|C1SP1|A1|C1BP1|T1 C1|4|C1SP2|A1|C1BP2|T2 C2|3|C2SP1|A2|C2BP1|T2 C3|3|C3SP1|A3|C3BP1|T2 C2|2|C2SP2|A2|C2BP2|T1 I need to filter above date base on following two steps: 1. Group them by column 1 and 4 2.... (12 Replies)
Discussion started by: angshuman
12 Replies

2. Programming

Sql ORA-00937: not a single-group group function

I'm trying to return only one row with the highest value for PCT_MAX_USED. Any suggestions? When I add this code, I get the ORA-00937 error. trunc(max(decode( kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100))) pct_max_used This is the original and returns all rows. select (select... (3 Replies)
Discussion started by: progkcp
3 Replies

3. Shell Programming and Scripting

need a one liner to grep a group info from /etc/group and use that result to search passwd file

/etc/group tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453 bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root /etc/passwd mk789:x:234:1::/export/home/dummy:/bin/sh po312:x:234:1::/export/home/dummy:/bin/sh ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies

4. Shell Programming and Scripting

Sort the file contents in each group....print the group title as well

I've this file and need to sort the data in each group File would look like this ... cat file1.txt Reason : ABC 12345-0023 32123-5400 32442-5333 Reason : DEF 42523-3453 23345-3311 Reason : HIJ 454553-0001 I would like to sort each group on the last 4 fileds and print them... (11 Replies)
Discussion started by: prash184u
11 Replies

5. Shell Programming and Scripting

Merge group numbers and add a column containing group names

Hi All I do have a file like this with 6 columns. Groups of data merge together and the group number is indicated above each group. 1 1 12 26 289 3.2e-027 GCGTATGGCGGC 2 12 26 215 6.7e+006 TTCCACCTTTTG 3 9 26 175 ... (1 Reply)
Discussion started by: Lucky Ali
1 Replies

6. Shell Programming and Scripting

Merge group numbers and add a column containing group names

I have a file in the following format. Groups of data merge together and the group number is indicated above each group. 1 adrf dfgr dfg 2 dfgr dfgr 3 dfef dfr fd 4 fgrt fgr fgg 5 fgrt fgr (3 Replies)
Discussion started by: Lucky Ali
3 Replies

7. AIX

Max users in a group ?

Hi All, Does anyone know if there is a maximum limit to the number of users that can be assigned to a group. I currently have on a production server 900+ users in 1 group. I know some of these users are no longer valid as we only have 500 employees and not all employees use this application. ... (4 Replies)
Discussion started by: anmiller
4 Replies

8. AIX

max size of a volum group with 5.3

hello i would like to create a volume group with 2200 Go (with pp size= 64) it is possible, or it is too big ? thank you (2 Replies)
Discussion started by: pascalbout
2 Replies

9. Solaris

entry in /etc/group too long - problem using sudo with %group

hi folks, I've been googling for quite some time, but still can't find anything near it...my problem is the following: for useradministration in our company we are using ssh/sudo, now whenever I try to add users (we have quite a number of users) with useradd -G groupname for secondary group I... (4 Replies)
Discussion started by: poli
4 Replies
Login or Register to Ask a Question