Bug 5982 - smbd crashes when trying to connect
Summary: smbd crashes when trying to connect
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.2.6
Hardware: Other Solaris
: P3 normal
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
: 6055 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-18 11:39 UTC by Michael Young
Modified: 2018-03-27 23:06 UTC (History)
1 user (show)

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
Comment 2 Björn Jacke 2018-03-27 23:06:48 UTC
*** Bug 6055 has been marked as a duplicate of this bug. ***