This command modifies a view policy.
Usage
viewpolicy modify --id ID [--name NAME] [--flavor NFS|SMB|MIXED_LAST_WINS|S3_NATIVE] [--auth-source RPC|PROVIDERS|RPC_AND_PROVIDERS] [--path-length LCD|NPL] [--allowed-characters LCD|NPL] [--gid-inheritance linux|bsd] [--atime-frequency ATIME_FREQUENCY] [--nfs-read-write [HOSTS]] [--nfs-read-only [HOSTS]] [--nfs-no-squash [HOSTS]] [--nfs-root-squash [HOSTS]] [--nfs-all-squash [HOSTS]] [--enable-nfs-return-open-permissions] [--disable-nfs-return-open-permissions] [--enable-nfs-posix-acl] [--disable-nfs-posix-acl] [--enable-32bit-fileid] [--disable-32bit-fileid] [--enable-expose-id-in-fsid] [--disable-expose-id-in-fsid] [--nfs-trash-access [HOSTS]] [--smb-file-mode SMB_FILE_MODE] [--smb-directory-mode SMB_DIRECTORY_MODE] [--vip-pool-ids POOL_IDs] [--nfs-minimal-protection-level] [--s3-visibility USERS] [--s3-visibility-groups GROUPS] [--enable-apple-sid] [--disable-apple-sid]
Required Parameters
General Options
|
Sets a unique name for the view policy. |
|
Sets the security flavor for a multiprotocol view policy to one of two security flavors:
To learn more about security modes, see: Controlling File and Directory Permissions Across Protocols. |
Specifies which source is trusted for the user's group memberships, when users' access to the view is authorized. Possible values:
|
|
Dedicates VIP Pools to the view policy. Specify POOL_IDs as a comma separated list of VIP pool IDs. |
NFS Security Flavor Options
S3 Options
|
Specify users to enables those users to list buckets that are created using this policy even if they do not have permission to access those buckets. When an S3 user sends a bucket listing request, the command returns a list of all buckets the user owns and all buckets that they have this listing permission for, even if they do not have permission to access those buckets. Specify Example: |
|
Specify groups to enable members of those groups to list buckets that are created using this policy even if they do not have permission to access those buckets. |
SMB Options
|
For use when connecting from Mac clients to SMB shares, this option enables Security IDs (SIDs) to be returned in Apple compatible representation. |
|
Disables |
Advanced Multi-Protocol Options
|
Specifies the policy for limiting file path component name length. Possible values:
|
|
Specifies the policy for which characters are allowed in file names. |
|
Specifies how files receive their owning group when they are created. Possible values:
|
Advanced NFS Options
|
atime is a metadata attribute of NFS files that represents the last time the file was updated. atime is updated on read operations if the difference between the current time and the file's atime value is greater than the configured atime frequency. Consider that a very low value might have a performance impact if high numbers of files are being read. Specify ATIME_FREQUENCY as an integer followed by a unit of time (s = seconds, m= minutes, h=hours, d=days). Example: 1h |
|
Sets the NFS server to unilaterally return open (777) permission for all files and directories when responding to client side access checks. This setting works around a permissions issue that occurs with Windows clients. Windows clients perform NFSv3 access checks before executing read/write requests. This client side check uses the UID and the primary GID of the user without taking into account secondary GIDs. If the check fails, requests are not executed. This means that some permissions may not be honored as they should be, such as those based on secondary groups. When return open permissions is enabled, VAST Cluster returns open permissions for client side access checks, so that the Windows client allows access rights and executes read/write requests. VAST Cluster does a proper permission check when the request is executed. CautionUse this feature with caution if Windows client systems are shared by more than one user, since the following security breach could occur: While a user is accessing a file with correct permissions and the file is cached in memory on the Windows system, if another user tries to access the same file, access is incorrectly allowed. No proper access check is done for the second user. |
|
Disables the NFS return open permissions setting. See |
|
Enables full support of extended POSIX Access Control Lists (ACL). By default, VAST Cluster supports the traditional POSIX file system object permission mode bits, (minimal ACL mode) in which each file has three ACL entries defining the permissions for the owner, owning group, and others, respectively. To learn more about POSIX ACL, see https://linux.die.net/man/5/acl. NoteThe |
|
Disables support for extended POSIX ACLs, restoring default minimal ACL mode. |
|
Sets the VAST Cluster's NFS server to use 32bit file IDs. This setting supports legacy 32-bit applications running over NFS. |
|
Set the Minimal Protection Level to accept from NFSv4.1 client RPCs:
|
NFS Host Access Options
These options set which NFS client hosts can access the view with which access types. In each access type option, HOSTS
can be specified as a comma separated series of any of the following:
-
A single IP.
-
A netgroup key, which starts with '@'. This is supported for NIS netgroups if NIS is configured. For information about how to use netgroups, see Using NIS Netgroups to Authorize Host Access to NFS Exports for more information.
Note
Netgroups are not supported for multiprotocol views.
-
A subnet indicated by CIDR notation. For example: 1.1.1.1/24.
-
A range of IPs indicated by an IP address with '*' as a wildcard in place of any of the 8-bit fields in the address. For example, 3.3.3.*, or 3.3.*.*.
The access types comprise these categories:
-
Controlling read and write operations:
-
Read / Write. Read/write access.
-
Read Only. Read only access.
-
-
Controlling squash policy:
-
No Squash. All operations are supported. Use this option if you trust the root user not to perform operations that will corrupt data.
-
Root Squash. The root user is mapped to nobody for all file and folder management operations on the export. This enables you to prevent the strongest super user from corrupting all user data on the VAST Cluster.
-
All Squash. All client users are mapped to nobody for all file and folder management operations on the export.
-
-
Controlling access to the trash folder:
-
Trash Access. This option does not appear here by default. It appears only if Enable trash folder access is enabled on the Settings page. Granting this permission gives hosts the ability to delete files by moving them into a trash folder, from which they are automatically deleted. Requires also No Squash. For more information, see Trash Folder (for Rapid Parallel File Deletion).
-
You can add hosts to any and all of the types, but within each category no more than one type will be applied to any given host. If a host is specified with multiple entries in mutually exclusive types, the conflict is resolved as follows:
-
An IP overrides a netgroup, a netgroup overrides a CIDR, and a CIDR overrides a wildcard expression.
-
If a conflict remains after the previous rule is applied, then:
-
Read Only overrides Read / Write.
-
All Squash overrides Root Squash.
-
Root Squash overrides No Squash.
-
By default, all hosts have read-write and root squash access.
|
Controls which NFS client hosts have read-write access to the view. By default, all hosts have read-write access. To remove all hosts from read-write access, include this option without any values. To restrict read-write access to specific hosts, specify For example: |
|
Specifies which NFS client hosts have read-only access to the view. Specify HOSTS according to the format description above this table. |
|
Specifies which hosts have no squash access. With no squash, all operations are supported. Use this option if you trust the root user not to perform operations that will corrupt data. Specify HOSTS according to the format description above this table. |
|
Controls which hosts have root squash access. With root squash, the root user is mapped to nobody for all file and folder management operations on the export. This enables you to prevent the strongest super user from corrupting all user data on the VAST Cluster. By default, all hosts have root squash access. To remove all hosts from root squash access, include this option without values. To restrict root squash to specific hosts, specify |
|
Specifies which hosts have all squash access. With all squash, all client users are mapped to nobody for all file and folder management operations on the export. Specify HOSTS according to the format description above this table. |
|
Specifies which hosts have access to the trash folder, if the trash folder is enabled. Specify HOSTS according to the format description above this table. |
Example
This example modifies some of the NFS host access rules of an existing view policy.
vcli: admin> viewpolicy modify --id 4 --nfs-read-write 10.0.0.2,10.0.0.3,10.0.0.4 --nfs-read-only 10.0.0.* --nfs-trash-access 10.0.0.4
Comments
0 comments
Article is closed for comments.