Three classes:
Three permissions:
Inspect:
ls -l
stat file
Change:
chmod 640 file
chmod u+x script.sh
chown alice:devops file
u+s): run as file ownerg+s): run as file group / inherit group on directories+t): only owner can delete in a directory (e.g. /tmp)chmod u+s /path/to/binary
chmod g+s /shared/dir
chmod +t /shared/dir
View:
getfacl file
Set:
setfacl -m u:alice:rwx file
setfacl -m g:devops:rx dir
Default ACLs for new files in a directory:
setfacl -d -m g:devops:rwX dir
ls -l