Samba not enforcing permissions inheritance
It’s frustrating when things don’t work as they should. While setting up a Samba server on SuSE 11, I had the pleasure of troubleshooting why permissions weren’t being inherited by children of a folder. I had what seemed like all of the appropriate settings in my smb.conf file. I looked over it a million times. inherit acls, inherit permissions, blah blah blah. It still wasn’t working and I had no idea why. New files COPIED the parent permissions but they weren’t INHERITED. In the Advanced Permissions dialog, the files all said “Inherited From: None” so I knew inheritance wasn’t working. After lots and lots of Googling, I saw someone suggest setting the vfs objects property. After I did that, everything worked! So here are some tips on getting permission inheritance working:
In your /etc/fstab, make sure you have the acl and user_xattrib mount options set for the partition that contains the files you are serving:
/dev/sda2 /local reiserfs acl,user_xattr 1 2
In your /etc/samba/smb.conf, make sure you have all the inherit options set to yes and the vfs objects option set:
inherit acls = yes
inherit owner = yes
inherit permissions = yes
vfs objects = acl_xattr
map acl inherit = yes
Keywords: samba 3.4.x suse sles 11 permissions inherit inheritance acls smb.conf smb
Add comment February 16th, 2011 at 10:48am