Paul B. Henson wrote:
From: Ian Collins
The biggest problem I have is rebooting the box. I'll have to wait for
a few weeks for maintenance window and users with > 16 groups are
already complaining...
Can you restart samba itself?
The users with > 16 groups are doing that on a regular basis...
If so, you can temporarily insert an override for the setgroups call which
truncates the number of groups down to 16. Something like:
int setgroups(int ngroups, const gid_t *grouplist) {
_setgroups(ngroups <= 16 ? ngroups : 16, grouplist);
}
If you compile that into a shared object and LD_PRELOAD it things shouldn't
crash. For example, replace the smbd binary with something like:
#! /usr/bin/perl
$ENV{LD_PRELOAD}='/usr/lib/samba/setgroups_truncate.so';
exec {'/usr/sbin/smbd.orig'} 'smbd', @ARGV;
Fixing the paths as appropriate of courseā¦
That is my fall back position, then they'll only complain when they
can't see specific files!
--
Ian.
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com