{"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>\nI 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