setfacl -m u:lisa:r Script.sh 'Grant user lisa read access to file file.
setfacl -m m::rx Script.sh 'Revoke write access from all groups
setfacl -x g:staff Script.sh 'Remove the group entry for the group
getfacl Script.sh | setfacl --set-file=- my-script.sh 'Copy the ACL of file1 to file2.
getfacl --access a | setfacl -d -M- b 'Copy the access ACL into the default ACL.
chmod u-s comphope.txt
getfacl -R "folder"
chmod -R 777 Script.sh 'read, write files full permession on
chmod +R 100 Script.sh
How to remove ACL entry for user tiwary on /data directory.
below command will remove only specified ACL from file/directory.
[root@localhost ~]# setfacl -x u:tiwary /data
How to remove all the acl’s on /data Directory
below command will remove all ACL from file/direcoty.
[root@localhost ~]# setfacl -b /data
example.
setfacl -m u:lisa:r Script.sh
setfacl -m m::rx Script.sh
setfacl -x g:staff Script.sh
getfacl Script.sh | setfacl --set-file=- my-script.sh 'Copy ACL of file1 to file2.
getfacl --access a | setfacl -d -M- b 'Copy the access default ACL.
chmod u-s comphope.txt
chmod -R 777 Script.sh 'read, write files full permession on
chmod +R 100 Script.sh
Comments
Post a Comment