2014/03/30
Quick Linux ACL
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.
1 |
# 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 ACLs with the “d:” prefix to make them default ACLs. Why not just use the default syntax exclusively?
Source: SuperUser
Quick Linux ACL is original content from devolve.