Manage POSIX ACLs WEKA client
Manage POSIX ACLs on a WEKA filesystem that is mounted with the native client to grant fine-grained access to specific users and groups. For the background on how WEKA applies POSIX ACLs.
Before you begin
Mount the filesystem with ACL support enabled by adding the
aclmount option. This option enables POSIX ACL handling and enforcement on the WEKA filesystem mount.Install the standard
aclpackage on the client server .Review the metadata cost in POSIX ACLs on the WEKA client before you enable ACL support on a production mount.
View mode bits and ACL entries
List the mode bits:
ls -l <path>A
+after the mode bits indicates an ACL, for example-rw-r-----+.List the ACL entries:
getfacl <path>Example output:
# file: data.txt # owner: bob # group: research user::rw- user:alice:r-- group::r-- mask::r-- other::---The
user::andgroup::lines correspond to the owner and the owning group. Named entries such asuser:alice:form the extended part of the ACL. Themask::line limits the effective permissions of named users and groups.
Grant a user access on a directory
Grant the user read, write, and conditional execute:
Capital
Xsets execute only where execute already applies, such as directories or files that already carry execute. For a directory, execute means traverse or search.Verify the change:
Remove a user ACL entry
Remove the entry:
Verify the change:
Set a default ACL for inheritance
Grant the user access on new items created under the directory:
Verify that the output includes
default:lines:
Apply ACLs recursively
Apply the ACL to all existing files and subdirectories:
Set a default ACL so new children inherit the same entries:
Back up and restore ACLs
Back up the ACLs before large-scale changes:
Restore the ACLs from the backup:
Related topics
Last updated