CmdID

CmdID / az / az storage / az storage fs / az storage fs access

az storage fs access set

Set the access control properties of a path(directory or file) in Azure Data Lake Storage Gen2 account. Azure CLI reference

4 examples 5 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Set the access control list of a path.

az storage fs access set --acl "user::rwx,group::r--,other::---" -p dir -f myfilesystem --account-name mystorageaccount --account-key 0000-0000Identify
--aclInvalid in conjunction with acl.
-pThe path to a file or directory in the specified file system.
-fFile system name (i.e. container name).

Set permissions of a path.

az storage fs access set --permissions "rwxrwx---" -p dir -f myfilesystem --account-name mystorageaccount --account-key 0000-0000Identify
--permissionsInvalid in conjunction with acl.
-pThe path to a file or directory in the specified file system.
-fFile system name (i.e. container name).

Set owner of a path.

az storage fs access set --owner example@microsoft.com -p dir -f myfilesystem --account-name mystorageaccount --account-key 0000-0000Identify
--ownerThe owning user of the file or directory.
-pThe path to a file or directory in the specified file system.
-fFile system name (i.e. container name).

Set owning group of a path.

az storage fs access set --group 68390a19-a897-236b-b453-488abf67b4dc -p dir -f myfilesystem --account-name mystorageaccount --account-key 0000-0000Identify
--groupThe owning group of the file or directory.
-pThe path to a file or directory in the specified file system.
-fFile system name (i.e. container name).

Options

5 in the Azure CLI reference
--file-system, -fFile system name (i.e. container name).
--groupThe owning group of the file or directory.
--ownerThe owning user of the file or directory.
--path, -pThe path to a file or directory in the specified file system.
--permissions, --aclInvalid in conjunction with acl.