Samba and groups > 16

David Collier-Brown David.Collier-Brown at Sun.COM
Wed Mar 2 15:02:33 GMT 2005


 And yes, this is exactly the case, the list is getting truncated
on Solaris 9.

--dave

Volker Lendecke wrote:
> 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
> 

-- 
David Collier-Brown,      | Always do right. This will gratify
Sun Microsystems, Toronto | some people and astonish the rest
davecb at canada.sun.com     |                      -- Mark Twain


More information about the samba-technical mailing list