- About chacl : Change the access control list of a file or directory
- Comes From : acl-2.2.49-4.el6.i686
Examples :
1. To change the ACL of a file
$ chacl u::r-x,g::r-x,o::r– file |
2. To set default acl for a directory
$ chacl -d u::rwx,g::r-x,o::r– /anydir/ |
3. To remove the ACL
$ chacl -R file |
4. To remove the directory default ACL
$ chacl -D /anydir/ |
5. To remove all ACLs
$ chacl -B file |
6. To list the ACL for a file/directory
$ chacl -l file |
7. To set the access ACL recursively
$ chacl -r u::r-x,g::r-x,o::r– /tmp/ |
Related Commands: getfacl, setfacl, chmod, umask, acl_from_text, acl, xfsdump