Samba and groups > 16

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Mar 1 15:54:31 GMT 2005


On Tue, Mar 01, 2005 at 10:43:27AM -0500, David Collier-Brown wrote:
>  Solaris supports getgroups, and I see tests in 
>  ./testsuite/nsswitch/initgroups.c
> which use it to find the number of groups so we can get them all, 
> but the code in source/lib/system_smbd.c finds the number of
> groups, but then then uses initgroups() which has a hard limit!

That test for you is simple: Use a plain solaris with *no* samba installed.
Create 17 (or 33 if your kernel is patched) groups. Create a user and put him
into 17 groups. Do a 'su -' to that user and see whether he can use rights from
all the groups. No samba involved. If that fails for one group, it does not
matter how we try to figure out what limit there is. There *is* a hard limit.

Volker


More information about the samba-technical mailing list