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.
More on Permissions, Users & sudo
Explain the rwx permission model for files and directories.BeginnerHow does octal notation work in chmod?BeginnerWhat does chown do and who can run it?IntermediateWhat is umask and how is the final permission calculated?IntermediateWhat is SUID and give a real example?IntermediateWhat does SGID do on files versus directories?Intermediate