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).
create directory_share nfs_auth_client

create directory_share nfs_auth_client


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


create directory_share nfs_auth_client < name > < share_path > < access_val > < sync > < all_squash > < root_squash >





name Name of the NFS share client.

The NFS share client is the name of the client host, IP address of the client, or name of the network group. The network group name starts with @ and contains 1 to 254 letters, digits, periods (.), underscores (_),and hyphens (-). The host name must meet the following requirements:

  • Contains 1 to 255 letters, digits, hyphens (-), and periods (.).
  • Must start with a letter or digit and cannot end with a hyphen (-).
  • Cannot contain consecutive periods (.) or only digits.
The IP address must meet the following requirements:
  • You can enter a single client IP address or a client IP address segment, or use asterisk (*) to represent all client IP addresses.
  • You can enter IPv4, IPv6.
share_path Share path.

The value contains 1 to 1024 characters.

access_val 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 constraint.

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



Create information about a Network File System share client.

admin:/>create directory_share nfs_auth_client /root ro async no_all_squash root_squash
Command executed successfully.

System Response


Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 25366

Downloads: 7

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