Tuesday, January 17, 2017

Access Control List

Only ext4 and xfs file systems support access control list.

ACL: Enables the user to access files to which the user is neither owner nor member of the group (incase other don’t have access)

Set ACL for a specific user
# setfacl   –m   u:( UID ) or name:rw   filename


Set ACL with umask
# setfacl –m  m::r  filename


Set default ACL for directory dir1
# setfacl   –d   -m   u : <<user_name>> : rw   dir1



Remove default ACL permissions
# setfacl  << --remove || -x  >> 

No comments:

Post a Comment