Interview Prep/Linux/Permissions, Users & sudo

What are POSIX ACLs and when do you need them?

IntermediateConceptPermissions, Users & sudo
Answer

ACLs grant permissions to additional specific users/groups beyond the single owner and group.

setfacl -m u:alice:rw /srv/report.csv
setfacl -m g:auditors:rx /var/log/app
setfacl -d -m g:devops:rwx /srv/shared   # default ACL, inherited by new files
getfacl /srv/report.csv
setfacl -b file                           # remove all ACLs

A + at the end of the ls -l mode string means ACLs are present.

All Linux questions Roadmap: Linux

More on Permissions, Users & sudo