Managing NFS client permissions using the CLI

Content Software for File CLI Reference

Version
4.2.x
Audience
anonymous
Part Number
MK-HCSF001-03

Command

weka nfs permission

Use the following command lines to add, update, or delete NFS permissions:

weka nfs permission add <filesystem> <group> [--path path] [--permission-type permission-type] [--root-squashing root-squashing] [--anon-uid anon-uid] [--anon-gid anon-gid] [--obs_direct]
weka nfs permission update <filesystem> <group> [--path path] [--permissiontypepermission-type] [--root-squashing root-squashing] [--non-uid anon-uid] [--anon-gid anon-gid] weka nfs permission delete <filesystem> <group> [--path path]
weka nfs permission delete <filesystem> <group> [--path path]

Parameters

Name Type Value Limitations Mandatory Default
filesystem String Filesystem name Existing filesystem. A filesystem set with required authentication cannot be used for NFS export. Yes  
group String Client group name Existing client group Yes  
path String The root of the share Valid path No /
permission-type String Permission type ro for readonly orrw for readwrite No RW
squash String Squashing type none, root or all (all is supported only when working on hosts with intrface-groups set with allow-manage-gids, otherwise it is treated as root) No On
anon-uid Number Anonymous user ID (relevant only for root squashing) Valid UID (between 1 and 65535) Yes (if root squashing is enabled) 65534
anon-gid Number Anonymous user group ID (relevant only for root squashing) Valid GID (between 1 and 65535) Yes (if root squashing is enabled) 65534
obs-direct Boolean See Object-store Direct Mount section on or off No No
manage-gids String Sets external group IDs resolution.

The list of group IDs received from the client will be replaced by a list of group IDs determined by an appropriate lookup on the server.

on or off

Relevant only when usingallow-manage-gids interface groups.

No Off
privileged-port String Sets the share to only be mounted via privileged ports (1-1024), usually only allowed by the root user. on or off.

Relevant only when usingallow-manage-gids interface groups.

No pff
supported-versions String A comma-separated list of supported NFS versions. v3, v4 No v3