Samba does not reload user group members
- by xato
I am running a simple samba server setup where users connect to a share which contains folders for specific user groups. The folders are chmod 2770, so only users which are in the correct group can read/write in them.
The problem is that if I change group memberships (i.e. remove user from group / add user to group; changes are in sync between clients and server!) samba does not automatically reload the group memberships for the user, so they can still write to groups that they are no longer a member of etc. I either have to reconnect to the share or to restart samba to apply the changes.
Is there any way to prevent group caching and/or enable group membership reload in samba?
My smb.conf: https://gist.github.com/anonymous/ca7c10a3b3e2168d7a03