Extended permissions (ACL)
cheat sheet · Linux · acl https://lab.dimsanych.ru/en/wiki/acl/Cheat sheet
-
getfacl fileshow ACL (+ in ls -l) -
setfacl -m u:user:rw filegrant a user -
setfacl -m g:grp:rx dirgrant a group -
setfacl -d -m u:user:rw dirinheritance (default ACL) -
setfacl -m m::rwx fileraise the mask -
setfacl -b fileremove all ACL entries -
getfacl -R dir > acl.baksave the tree's ACL to a file -
setfacl --restore=acl.bakrestore ACL from a file