Does anyone of you knows the maximum number of members that a group can have?
Kernel 2.4 / 2.6..........
)
Does anyone of you knows the maximum number of members that a group can have?
Kernel 2.4 / 2.6..........
)
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
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.
Write c program:
Type following program:Code:vi test.c
CompileCode:#include <unistd.h> #include <stdio.h> int main(void){ long n = sysconf(_SC_NGROUPS_MAX); printf("Max Groups : %ld\n",n); return 0; }
Run program:Code:gcc test.c -o test
Output:Code:./test
Code:Max Groups : 65536
Yes the problem is the limitation of 1024 characters for /etc/group.
Upgraded the version glibc and everything now works smoothly.
thanks to everybody.....![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)