savannah-hackers-public
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers-public] Re: [Pkg-shadow-devel] Bug#325436: Limit of 32


From: Sylvain Beucler
Subject: [Savannah-hackers-public] Re: [Pkg-shadow-devel] Bug#325436: Limit of 32 groups per users
Date: Sun, 28 Aug 2005 22:37:57 +0200
User-agent: Mutt/1.5.9i

On Sun, Aug 28, 2005 at 07:52:26PM +0200, Tomasz K??oczko wrote:
> On Sun, 28 Aug 2005, Sylvain Beucler wrote:
> [..]
> > Incidentally 'id' is also limited to 32
> > users. sysconf(_SC_NGROUPS_MAX) also returns 32.
> > 
> > stable's /usr/include/linux/limits.h has NGROUPS_MAX set to 32. In
> > testing and unstable it is set to 65536.
> > 
> > 
> > The usermod limitation happens in stable and testing (tested with
> > their respective default kernel), but not in unstable (tested with the
> > testing kernel - all tested kernels having ngroups_max=65536).
> > 
> > Basically we have a kernel without the limitation, but the executables
> > have the limitation, which was probably set at compile time.
> > 
> > Do you know what's the origin of the limitation, and how it could be
> > fixed to match the default kernel's?
> 
> shadow tools uses limits sucked from sysconf(_SC_NGROUPS_MAX) and all code 
> are rewrited for use dynamic limit number of groups. If this functions 
> return inccorect value compare with output of "sysctl kernel.ngroups_max" 
> this mean this is glibc bug (sysconf() it is glibc part).

Thanks a lot. I'll contact the glic people :)

-- 
Sylvain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]