Comment 38 for bug 212098

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Mark,

I'm not sure it is that simple with the current Samba implementation, because it isn't a case of Samba querying whether the user belongs to the correct group or not when a share is created. The Nautilus-share extension (running with normal user privileges) needs write access to /var/lib/samba/usershares in order to create a share. Only root and members of 'sambashare' can write to this directory, and this is the Samba implementation of controlling who can add shares. This problem is purely down to the user not immediately gaining the privileges to write to this folder, when they are added to the group. Unfortunately, I think this can only be solved by logging out and back in again.

Maybe this situation could be improved with Policykit in the future.