Access Control List Flashcards
What is the command to assign and remove ACL permissions?
setfacl and getfacl
How can you add permission to a user using ACLs?
setfacl -m u:user:rwx /path/to/file
How can you add permission to a group using ACLs?
setfacl -m g:group:rwx /path/to/file
How can you allow all files or directories to inherit ACL entries from the directory it is within?
setfacl -Rm “entry” /path/to/file(or dir)
entry = u:user:rwx or g:group:rwx
How can you remove a specific entry?
setfacl -x u:user|g:group /path/to/file
How can you remove all entries?
setfacl -b /path/to/file(or dir)
When you assign an ACL permission to a file or directory what is added at the end of the permission? Include an example.
It adds a + sign at the end of the permission string.
drwxrwxrwx+
Does setting w permission with ACL allow you to remove a file?
No