{"id":493,"date":"2014-03-30T21:27:31","date_gmt":"2014-03-31T01:27:31","guid":{"rendered":"http:\/\/devolve.net\/blog\/?p=493"},"modified":"2014-10-23T13:40:02","modified_gmt":"2014-10-23T17:40:02","slug":"quick-linux-acl","status":"publish","type":"post","link":"https:\/\/www.devolve.local\/quick-linux-acl\/","title":{"rendered":"Quick Linux ACL"},"content":{"rendered":"

I wanted a directory and everything under it to always get the same owner, group and mode, regardless of who created the files. Access Control Lists to the rescue.<\/p>\n

\r\n# setfacl -Rm u:myuser:rwX,g:www-data:rwX,d:u:myuser:rwX,d:g:www-data:rwX dir\/\r\n<\/pre>\n

I had to apt-get install acl<\/code> to get the setfacl<\/code> command. I’m not exactly clear on why I repeat two regular ACLs with the “d:” prefix to make them default ACLs. Why not just use the default syntax exclusively?<\/p>\n

Source: SuperUser<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

I wanted a directory and everything under it to always get the same owner, group and mode, regardless of who created the files. Access Control Lists to the rescue. # setfacl -Rm u:myuser:rwX,g:www-data:rwX,d:u:myuser:rwX,d:g:www-data:rwX dir\/ I had to apt-get install acl to get the setfacl command. I’m not exactly clear on why I repeat two regular […]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[34,16,26],"_links":{"self":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/493"}],"collection":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/comments?post=493"}],"version-history":[{"count":2,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/493\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/posts\/493\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/media?parent=493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/categories?post=493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devolve.local\/wp-json\/wp\/v2\/tags?post=493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}