nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

What is the maximum number of members that a group can have?

This is a discussion on What is the maximum number of members that a group can have? within the Linux software forums, part of the Linux Getting Started category; Does anyone of you knows the maximum number of members that a group can have? Kernel 2.4 / 2.6.......... )...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-13-2006, 02:41 PM
Member
User
 
Join Date: Jun 2005
Posts: 45
Rep Power: 0
warren
Default What is the maximum number of members that a group can have?

Does anyone of you knows the maximum number of members that a group can have?
Kernel 2.4 / 2.6..........
)
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-13-2006, 05:04 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 0
tom is an unknown quantity at this point
Default

In older implementations (glibc), a group cannot have more than 200 members. The maximum line length of /etc/group is 1024 characters. Longer lines will be skipped. This limitation disappeared in newer version of glibc. Older binaries that are statically linked, depend on old shared libraries, may still have this limit.

More info can be found at The GNU C Library docs : http://www.gnu.org/software/libc/man...ode/index.html
Reply With Quote
  #3 (permalink)  
Old 03-13-2006, 05:18 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 557
Rep Power: 6
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Try command:
Code:
grep GID /etc/login.defs
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #4 (permalink)  
Old 03-13-2006, 05:46 PM
Junior Member
User
 
Join Date: Sep 2005
Posts: 25
Rep Power: 0
charvi
Default

Write c program:

Code:
vi test.c
Type following program:

Code:
#include <unistd.h>
#include <stdio.h>
int main(void){
 long n = sysconf(_SC_NGROUPS_MAX);
 printf("Max Groups : %ld\n",n);
 return 0;
}
Compile
Code:
gcc test.c -o test
Run program:
Code:
./test
Output:
Code:
Max Groups : 65536
Reply With Quote
  #5 (permalink)  
Old 03-29-2006, 07:31 AM
Member
User
 
Join Date: Jun 2005
Posts: 45
Rep Power: 0
warren
Default

Yes the problem is the limitation of 1024 characters for /etc/group.
Upgraded the version glibc and everything now works smoothly.

thanks to everybody.....
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
set up e-mail group karpos Mail Servers 1 06-01-2007 12:28 AM
Group Policy bubloob_13 Windows Xp/2000/2003 server administration 0 01-31-2007 02:31 PM
Group Policy bubloob_13 Windows Xp/2000/2003 server administration 1 12-20-2006 03:22 PM
win2k3 Group policy bubloob_13 Windows Xp/2000/2003 server administration 1 12-11-2006 12:30 PM
Any idea on the maximum number of NFS clients? warren Linux software 2 09-12-2006 11:40 AM


All times are GMT +5.5. The time now is 02:19 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36