Bug 5982 - smbd crashes when trying to connect
smbd crashes when trying to connect
Status: RESOLVED INVALID
Product: Samba 3.2
Classification: Unclassified
Component: Printing
3.2.6
Other Solaris
: P3 normal
: ---
Assigned To: Jeremy Allison
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-18 11:39 UTC by Michael Young
Modified: 2009-05-11 05:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Young 2008-12-18 11:39:41 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.
Comment 1 Volker Lendecke 2009-05-11 05:48:06 UTC
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.

Volker