For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 acl mount option. This option enables POSIX ACL handling and enforcement on the WEKA filesystem mount.

  • Install the standard acl package 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

  1. List the mode bits:

    ls -l <path>

    A + after the mode bits indicates an ACL, for example -rw-r-----+.

  2. 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:: and group:: lines correspond to the owner and the owning group. Named entries such as user:alice: form the extended part of the ACL. The mask:: line limits the effective permissions of named users and groups.

Grant a user access on a directory

  1. Grant the user read, write, and conditional execute:

    Capital X sets execute only where execute already applies, such as directories or files that already carry execute. For a directory, execute means traverse or search.

  2. Verify the change:

Remove a user ACL entry

  1. Remove the entry:

  2. Verify the change:

Set a default ACL for inheritance

  1. Grant the user access on new items created under the directory:

  2. Verify that the output includes default: lines:

Apply ACLs recursively

  1. Apply the ACL to all existing files and subdirectories:

  2. Set a default ACL so new children inherit the same entries:

Back up and restore ACLs

  1. Back up the ACLs before large-scale changes:

  2. Restore the ACLs from the backup:

Related topics

POSIX ACLs on the WEKA client

Mount filesystems

Manage the NFS protocol

Last updated