re-register ms-help protocol if deleted by hijackthis (address is not valid) PSLIST Process performance object not found Run Exctrlst from the Windows Resource Kit to repair the performance counters

Samba not enforcing permissions inheritance

February 16th, 2011 at 10:48am

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

Entry Filed under: computers

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

February 2011
S M T W T F S
« Apr   May »
 12345
6789101112
13141516171819
20212223242526
2728  

Most Recent Posts