volume setacl

Definition

Sets one or more ACLs, replacing the existing ones.

IMPORTANT
All the existing ACL will be deleted if they are not present in the new ACL list.

Usage

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

value

A volume URI. It can be a full URI (starts with o3://, e.g. o3://hostname:9862/vol1/) or a short URI (starts with a volume name, e.g. vol1). 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

Setting an ACL to a volume:

$ ozone sh volume setacl -s=OZONE -a=user:sergei:all vol1

The confirmation output:

ACLs set successfully.
Found a mistake? Seleсt text and press Ctrl+Enter to report it