Advanced
Package: acl
setfacl
Set fine-grained Access Control List permissions.
Syntax
setfacl [options] rule file
Description
setfacl extends the traditional owner/group/other model, letting you grant specific permissions to additional individual users or groups on a single file or directory without changing its base ownership.
Examples
setfacl -m u:bob:rwx file.txt
Grant user "bob" read/write/execute in addition to normal permissions
setfacl -R -m g:auditors:rx /var/log/app
Recursively grant a group read/execute access
setfacl -x u:bob file.txt
Remove a specific ACL entry
Filesystem must be mounted with ACL support (default on most modern distributions with ext4/xfs).