Bug#325436: [Pkg-shadow-devel] Bug#325436: Limit of 32 groups per
users
Tomasz Kłoczko
kloczek at zie.pg.gda.pl
Sun Aug 28 17:52:26 UTC 2005
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).
kloczek
--
-----------------------------------------------------------
*Ludzie nie mają problemów, tylko sobie sami je stwarzają*
-----------------------------------------------------------
Tomasz Kłoczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek at rudy.mif.pg.gda.pl*
More information about the Pkg-shadow-devel
mailing list