ACL: Access Control List
Using ACL we can give permissions to specific users/groups on a file/dir
setfacl -m : to add ACL permissions
syn: setfacl -m <whome>:<name>:<permissions> filename
ex: setfacl -m u:user1:rw hello.txt
setfacl -m u:user2:r hello.txt
setfacl -m g:dba:rwx hello.txt
setfacl -x: to remove permissions
syn: setfacl -x <whome>:<name> filename
ex: setfacl -x u:user1 hello.txt
setfacl -x u:user2 hello.txt
setfacl -x g:dba hello.txt
getfacl: to view permissions on a file
syn: getfacl filename
ex: getfack hello.txt
note: for a newly created partition we have set acl,user_xattr mount options so that files in this partition can be set with ACL permissions
tune2fs -o acl,user_xattr /dev/sda7
Comments
Post a Comment