Results 1 to 5 of 5

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

  1. #1
    Member
    Join Date
    Jun 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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..........
    )

  2. #2
    Contributors
    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    208
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    10

    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

  3. #3
    Is that all you got? rockdalinux's Avatar
    Join Date
    May 2005
    Location
    Planet Vegeta
    Posts
    987
    Thanks
    27
    Thanked 71 Times in 62 Posts
    Rep Power
    20

    Default

    Try command:
    Code:
    grep GID /etc/login.defs
    Rocky Jr.
    What's wrong? I hope I am not making you uncomfortable...

    Never send a boy to do a mans job.

  4. #4
    Junior Member
    Join Date
    Sep 2005
    Posts
    29
    Thanks
    3
    Thanked 2 Times in 1 Post
    Rep Power
    0

    Default

    Write c program:

    Code:
    vi test.c
    Type following program:

    Code:
    #include <unistd.h>
    #include <stdio.h>
    int main&#40;void&#41;&#123;
     long n = sysconf&#40;_SC_NGROUPS_MAX&#41;;
     printf&#40;"Max Groups &#58; %ld\n",n&#41;;
     return 0;
    &#125;
    Compile
    Code:
    gcc test.c -o test
    Run program:
    Code:
    ./test
    Output:
    Code:
    Max Groups &#58; 65536

  5. #5
    Member
    Join Date
    Jun 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    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.....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. set up e-mail group
    By karpos in forum Mail Servers
    Replies: 1
    Last Post: 1st June 2007, 12:28 AM
  2. Group Policy
    By bubloob_13 in forum Windows Xp/2000/2003 server administration
    Replies: 0
    Last Post: 31st January 2007, 02:31 PM
  3. Group Policy
    By bubloob_13 in forum Windows Xp/2000/2003 server administration
    Replies: 1
    Last Post: 20th December 2006, 03:22 PM
  4. win2k3 Group policy
    By bubloob_13 in forum Windows Xp/2000/2003 server administration
    Replies: 1
    Last Post: 11th December 2006, 12:30 PM
  5. Any idea on the maximum number of NFS clients?
    By warren in forum Linux software
    Replies: 2
    Last Post: 12th September 2006, 11:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •