prefix addacl

Definition

Adds an access control list for a prefix.

Usage

$ ozone sh prefix addacl [-hV] [-s=<store>]
                               -a=<list>
                               <value>
Arguments
Parameter Description

value

A prefix URI. It can be a full URI (starts with o3://, e.g. o3://hostname:9862/vol1/bucket1/prefix) or a short URI (starts with a volume name, e.g. vol1/bucket1/prefix). Any missing information is obtained from the configuration files

store

Store type: OZONE or S3

list

A comma-separated list of ACLs. An ACL should match the following pattern: <type>:<entity>:<permissions>, where:

  • <type> is a system entity type like user or group.

  • <entity> is a user or a group the permissions for which you want to control.

  • <permissions> is a sequence of letters that defines the entity’s permissions. The following values are available:

    • r — read the resource data.

    • w — write data to the resource.

    • c — create objects at the resource.

    • d — delete objects at the resource.

    • l — list objects stored at the resource.

    • x — read the access control list of the resource.

    • y — edit the access control list of the resource.

    • a — all of the above.

    • n — no permissions.

-h, --help

Prints out a help manual for this command

-V, --version

Prints out version information and exits

Examples

Adding an ACL:

$ ozone sh prefix addacl vol1/bucket1/prefix -s=OZONE -a=user:sergei:all

The confirmation output:

ACL user:sergei:la[ACCESS] added successfully.
Found a mistake? Seleсt text and press Ctrl+Enter to report it