No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


OceanStor 9000 V5 7.0 Command Reference 03

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change directory_share nfs_auth_client

change directory_share nfs_auth_client


The change directory_share nfs_auth_client command is used to modify information about a Network File System (NFS) share client.


change directory_share nfs_auth_client < id > [ access=? ] [ sync=? ] [ all_squash=? ] [ root_squash=? ]





id NFS share client ID.

The value can contain only 1 to 127 letters, digits, hyphens (-), underscores (_), and periods (.).

access Access mode.

ro: read-only

rw: full-control

rd: read and write, but unable to be deleted or renamed.

sync Synchronization mode.

sync: synchronous

async: asynchronous.

all_squash Permission constraint.

Whether to retain the user identity (UID) and group ID (GID) of a share folder.

all_squash: indicates that the UID and GID of the share folder are mapped to an anonymous user.

no_all_squash: indicates that the UID and GID of the share folder are retained.

The default value is no_all_squash.

root_squash Root permission of a client.

Whether the root permission of a client is allowed.

root_squash: The permission of user root is constrained. Indicates that the client is not allowed to access a share folder as a root user. If the client logs in as a root user, it is mapped as an anonymous user.

no_root_squash: The permission of user root is not constrained. indicates that the client can access a share folder as a root user. User root is not mapped as an anonymous user.

The default value is root_squash.

Only when the value of Permission constraint is set to all_squash, the storage system will map user root as an anonymous user regardless of whether the value of Root permission constraint is set to root_squash or no_root_squash.

If root_squash is configured, when a client accesses the storage system as user root, the storage system maps user root as an anonymous user.


Resource administrator

Usage Guidelines

To execute this command, you must specify at least one optional parameter.


Modify information about a Network File System (NFS) share client.

admin:/>change directory_share nfs_auth_client 1 root_squash=no_root_squash 
DANGER: You are about to modify the folder share permission of NFS client. If the folder share permission is modified, the client may fail to access services.
Have you read danger alert message carefully?(y/n)y
Are you sure you want to perform the operation?(y/n)y
Command executed successfully.

System Response


Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 25059

Downloads: 7

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next