{"id":111,"date":"2012-07-16T11:46:10","date_gmt":"2012-07-16T11:46:10","guid":{"rendered":"http:\/\/vickistan.com\/?p=111"},"modified":"2014-12-16T13:58:15","modified_gmt":"2014-12-16T13:58:15","slug":"back-up-access-control-lists","status":"publish","type":"post","link":"https:\/\/vickistan.com\/?p=111","title":{"rendered":"Access Control Lists"},"content":{"rendered":"<p>Add ACL for apache user:<\/p>\n<p>First see what ACLs exist already:<\/p>\n<p>root@server1 mysite.org]# getfacl \/var\/www\/vhosts\/mysite.org\/uploads<br \/>\ngetfacl: Removing leading &#8216;\/&#8217; from absolute path names<br \/>\n# file: var\/www\/vhosts\/mysite.org\/uploads<br \/>\n# owner: user1<br \/>\n# group: user1<br \/>\nuser::rwx<br \/>\ngroup::rwx<br \/>\nmask::rwx<br \/>\nother::r-x<br \/>\ndefault:user::rwx<br \/>\ndefault:group::rwx<br \/>\ndefault:mask::rwx<br \/>\ndefault:other::r-x<\/p>\n<p>If apache user isn&#8217;t listed, do this:<\/p>\n<p>setfacl -R -m u:apache:rwx \/var\/www\/vhosts\/mysite.org<br \/>\nsetfacl -R -m d:u:apache:rwx \/var\/www\/vhosts\/mysite.org<\/p>\n<p>Once you have them working as you want, back them up for safe keeping:<br \/>\ngetfacl -R &#8211;absolute-names \/foo\/bar > \/home\/user\/faclbackup<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add ACL for apache user: First see what ACLs exist already: root@server1 mysite.org]# getfacl \/var\/www\/vhosts\/mysite.org\/uploads getfacl: Removing leading &#8216;\/&#8217; from absolute path names # file: var\/www\/vhosts\/mysite.org\/uploads # owner: user1 # group: user1 user::rwx group::rwx mask::rwx other::r-x default:user::rwx default:group::rwx default:mask::rwx default:other::r-x &hellip; <a href=\"https:\/\/vickistan.com\/?p=111\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[3],"tags":[],"class_list":["post-111","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=111"}],"version-history":[{"count":7,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":637,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions\/637"}],"wp:attachment":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}