Extended ACLs
- Mar
- 19
- Posted by TKH Specialist
- Posted in redhat
To remove permanently ACL from a file:
# setfacl -bn file.txt
To remove permanently ACL from an entire directory:
# setfacl -b --remove-all directory.name
To overwrite permissions, setting them to rw for files and rwx for dirs
$ find . ( -type f -exec setfacl -m g:mygroup:rw '{}' ';' )
-o ( -type d -exec setfacl -m g:mygroup:rwx '{}' ';' )
To set mygroup ACL permissions based on existing group permissions
$ find . ( -perm -g+x -exec setfacl -m g:mygroup:rw '{}' ';' )
-o ( -exec setfacl -m g:mygroup:rwx '{}' ';' )
You’ll probably want to check that the group mask provides effective permissions. If not you can do it the old school way and run this too:
$ find . -type d -exec chmod g+rwX '{}' ';'
.
Recent Comments
- Stefan on Flush This!
- Timestamping your Bash History | Matt's Entropy on Remember when you issued that command…?
- Matt Smith on Remember when you issued that command…?
- Ruan on Putting ‘lsof’ to use
- Dylan F. Marquis on External Mapping of LDAP attributes in CAS