Access Control Lists are one of the most basic means of implementing security on a system.
ACLs are very intertwined with Linux file permissions.
Reminder:
- r = permission to read
- w = permission to write
- x = permission to execute
When you run ls -l
, you get the permissions for:
- the file owner (User)
- users belonging to the same group as the owner (Group)
- all other users (Others)
To get a file ACL: getfacl filename
To make changes to a file ACL: setfacl -m u:username:rx filename
https://www.golinuxcloud.com/setfacl-getfacl-command-in-linux/
To remove all extended ACL entries: setfacl -b filename
src = https://www.howtogeek.com/how-acl-masks-let-you-fine-tune-file-permissions-in-linux/
EOF