Contained WithinFind More DocumentationFeatured Support Resources | Descargar este libro en PDF (1709 KB)
Delegating ZFS PermissionsYou can use the zfs allow command to grant permissions on ZFS datasets to non-root users in the following ways:
The following table describes the operations that can be delegated and any dependent permissions that are required to perform the delegated operations.
You can delegate the following set of permissions but the permission might be limited to access, read, or change permission:
In addition, you can delegate the following ZFS properties to non-root users:
Some of these properties can be set only at dataset creation time. For a description of these properties, see Introducing ZFS Properties. Syntax Description for Delegating Permissions (zfs allow)The zfs allow syntax is as follows:
The following zfs allow syntax (in bold) identifies to whom the permissions are delegated:
Multiple entities can be specified as a comma-separated list. If no -uge options are specified, then the argument is interpreted preferentially as the keyword everyone, then as a user name, and lastly, as a group name. To specify a user or group named “everyone,” use the -u or -g option. To specify a group with the same name as a user, use the -g option. The -c option grants create-time permissions. The following zfs allow syntax (in bold) identifies how permissions and permission sets are specified:
Multiple permissions can be specified as a comma-separated list. Permission names are the same as ZFS subcommands and properties. For more information, see the preceding section. Permissions can be aggregated into permission sets and are identified by the -s option. Permission sets can be used by other zfs allow commands for the specified file system and its descendents. Permission sets are evaluated dynamically, so changes to a set are immediately updated. Permission sets follow the same naming conventions as ZFS file systems, but the name must begin with an at sign (@) and can be no more than 64 characters in length. The following zfs allow syntax (in bold) identifies how the permissions are delegated:
The -l option indicates that the permission is allowed for the specified dataset and not its descendents, unless the -d option is also specified. The -d option indicates that the permission is allowed for the descendent datasets and not for this dataset, unless the -l option is also specified. If neither of the -ld options are specified, then the permissions are allowed for the file system or volume and all of its descendents. Removing ZFS Delegated Permissions (zfs unallow)You can remove previously granted permissions with the zfs unallow command. For example, assume you delegated create, destroy, mount, and snapshot permissions as follows:
To remove these permissions, you would need to use syntax similar to the following:
|
|||||||||||||||||||||||||||||||||||||||||||||