MacOS/Samba not playing nice

Ben Scott dragonhawk at gmail.com
Tue Jul 2 19:26:53 EDT 2013


On Tue, Jul 2, 2013 at 3:09 PM, Robert Pruyne <rpruyne at rpc-nh.org> wrote:
> I have a Samba server running on it to serve files on our network.
> When our only Mac OS user logs in, and tries to make a new directory on
> the Samba server, it creates it with permissions of 0700, and the user is the
> owner, effectively disallowing any other user from using the directory.

  My guess is that Mac OS X, being a Unix-like OS under the covers,
supports the SMB extensions that allow it to specify Unix-style file
permissions.  Those are thus getting passed from the Mac OS X client
to the Samba server, and Samba dutifully sets the permissions it was
given.

  Assuming that is correct, there are two approaches here: One is to
adjust the client to do what you want.  In theory, this is the more
"elegant" approach.  The other approach would be to configure Samba to
ignore whatever the client is telling it, and just set permissions
from the Samba config file.  That should work, but it's kind of
brutish, and if you ever want to apply other permissions, you'd need
to revisit.

  I don't know much of anything about Mac OS X, but this seems like it
might be applicable to adjust the client:

http://support.apple.com/kb/ht2202

(found with: http://www.google.com/search?q=mac+os+x+umask )

  To instead just clobber whatever other permissions might have
evolved and apply the same thing everywhere, use the "force create
mode" and "force directory mode" directives in your Samba config file.

-- Ben


More information about the gnhlug-discuss mailing list