File Access Control List on RHEL

Granting an additional user read/write/execute access

setfacl -m u:marvin:rwx file_name

 

Revoking write access from all groups and all named users

setfacl -m m::rx file_name

 

Removing a named group entry from a file’s ACL

setfacl -x g:staff file_name

 

Copying the ACL of one file to another

getfacl file_name | setfacl –set-file=- file_name

 

Copying the access ACL into the default ACL

getfacl –access dir | setfacl -d -M- dir

 

Remove all ACL entries

setfacl -b file_name