The Samba-Bugzilla – Bug 5982
smbd crashes when trying to connect
Last modified: 2009-05-11 05:48:06 UTC
When I try to connect to a printer on a samba 3.2.6 server on solaris 10 sparc from XP (service pack 3) smbd crashes with the error
[2008/12/12 17:01:36, 0] lib/util.c:smb_panic(1663)
PANIC (pid 14002): sys_setgroups failed
I have done some poking around and the problem seems to be that setgroups is called with 18 supplementary groups which is more than NGROUPS_MAX (16 on this platform) so it returns an error. Probably few if any of these groups are valid unix groups in any case, since my account only has 6 such groups beyond the primary group.
This is a limitation in Solaris, please contact SUN to fix it.
As a workaround, you might want to map users exceeding 16 groups to a local unix user with the "username map" feature. Please re-open this bug if with that setting the problem still appears.