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.


Command Reference 10

OceanStor 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3 Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions."
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 share_permission nfs

create share_permission nfs


The create share_permission nfs command is used to creat an NFS share permission.


create share_permission nfs access_name=? share_id=? access_type=? sync_enabled=? all_squash_enabled=? root_squash_enabled=?





access_name=? Access object. The object can be an IP address, host name, network group, network segment or asterisk(*).

The value ranges from 1 to 256 characters.

If the value is a network group, add the "@" before the name to be different from the host name.

Host name:

1. The value can consist of letters, digits, hyphens (-), periods (.), and underscores (_).

2. The value starts with a letter or digit and cannot end with a hyphen (-) or underscore (_).

3. The value cannot contain consecutive periods (.), or combination of a period and hyphen (.- or -.), or the combination of a period and underscore (._ or _.).

4. The value cannot consist of pure digits.

share_id=? NFS share ID.

The value ranges from 1 to 18446744073709551615.

access_type=? NFS share access type.

The value can be "read_only" and "read_write", where:

  • "read_only": read-only permission.
  • "read_write": read and write permission.
sync_enabled=? Whether NFS share write synchronization is enabled.

The value can be "yes" and "no", where:

  • "yes": NFS share write synchronization is enabled.
  • "no": NFS share write synchronization is disabled.
all_squash_enabled=? Whether squashing all users is enabled.

The value can be "yes" and "no", where:

  • "yes": squashing all users is enabled.
  • "no": squashing all users is disabled.
root_squash_enabled=? Whether squashing super users is enabled.

The value can be "yes" and "no", where:

  • "yes": squashing super users is enabled.
  • "no": squashing super users is disabled.



Usage Guidelines



Create an NFS share permission.

admin:/>create share_permission nfs access_name=* share_id=1 access_type=read_write sync_enabled=no all_squash_enabled=no root_squash_enabled=no
Command executed successully.

System Response


Updated: 2019-07-22

Document ID: EDOC1000084195

Views: 362587

Downloads: 1590

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