Definition:
- set file access control lists
- When working with users, the format is
u:{user name}:{permissions}
- When working with groups, the format is
g:{group name}:{permissions}
- The -M and -X options read an ACL from a file or from standard input.
Synopsis:
setfacl
[-bkndRLPvh]
[{-m|-x} acl_spec]
[{-M|-X} acl_file]
file/dir ...
- ..
List of options:
-b, --remove-all
- Remove all extended ACL entries.
- The base ACL entries of the owner, group and others are retained.
- …
-R, --recursive
--set, --set-file
- The —set and —set-file options set the ACL of a file or a directory.
- The previous ACL is replaced.
- ACL entries for this operation must include permissions.
-m, --modify and -M, --modify-file
-x, --remove and -X, --remove-file
- remove ACL entries.
- It is not an error to remove an entry which does not exist.
- Only ACL entries without the perms field are accepted as parameters
- unless POSIXLY_CORRECT is defined.
- `