{"id":22,"date":"2011-02-16T10:48:46","date_gmt":"2011-02-16T17:48:46","guid":{"rendered":"http:\/\/www.chuonthis.com\/tips\/2011\/02\/16\/samba-not-enforcing-permissions-inheritance\/"},"modified":"2011-02-16T10:48:46","modified_gmt":"2011-02-16T17:48:46","slug":"samba-not-enforcing-permissions-inheritance","status":"publish","type":"post","link":"https:\/\/chuonthis.com\/tips\/2011\/02\/16\/samba-not-enforcing-permissions-inheritance\/","title":{"rendered":"Samba not enforcing permissions inheritance"},"content":{"rendered":"<p>It&#8217;s frustrating when things don&#8217;t work as they should.  While setting up a Samba server on SuSE 11, I had the pleasure of troubleshooting why permissions weren&#8217;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&#8217;t working and I had no idea why.  New files COPIED the parent permissions but they weren&#8217;t INHERITED.  In the Advanced Permissions dialog, the files all said &#8220;Inherited From: None&#8221; so I knew inheritance wasn&#8217;t working.  After lots and lots of Googling, I saw someone suggest setting the <strong>vfs objects<\/strong> property.  After I did that, everything worked!  So here are some tips on getting permission inheritance working:<\/p>\n<p>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:<\/p>\n<p><code>\/dev\/sda2 \/local reiserfs <strong>acl,user_xattr<\/strong> 1 2<\/code><\/p>\n<p>In your \/etc\/samba\/smb.conf, make sure you have all the inherit options set to yes and the vfs objects option set:<br \/>\n<code>inherit acls = yes<br \/>\ninherit owner = yes<br \/>\ninherit permissions = yes<br \/>\n<strong>vfs objects = acl_xattr<\/strong><br \/>\nmap acl inherit = yes<\/code><\/p>\n<p>Keywords: samba 3.4.x suse sles 11 permissions inherit inheritance acls smb.conf smb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s frustrating when things don&#8217;t work as they should. While setting up a Samba server on SuSE 11, I had the pleasure of troubleshooting why permissions weren&#8217;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&hellip; <a class=\"continue-reading-link\" href=\"https:\/\/chuonthis.com\/tips\/2011\/02\/16\/samba-not-enforcing-permissions-inheritance\/\">Continue reading <span class=\"screen-reader-text\">Samba not enforcing permissions inheritance<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-computers","entry"],"_links":{"self":[{"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chuonthis.com\/tips\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}