Used to grant access to multiple users
Mount with ACL option
# mount –o remount,acl /directory_name
List assigned ACL
# getfacl file|directory_name
Set ACL for user
# setfacl –m u:username:rwx file
Set ACL for group
# setfacl –m g:groupname:rwx file
Set ACL only for Directory
# setfacl –m d:u:username:rwx directory_name
Remove ACL
# setfacl –x u:username file|directory_name
Entries appear in ACL
user::perm - set permission for file owner
user::username:perms - set permission for a specific user
group::perms - set permission for group that own the file
group::groupname:perm - set permission for a specific group
other::perms - set permission for all others
mask::perms - set permission for all but owner and other
No comments:
Post a Comment