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

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI provided by DeviceManager, 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 create an NFS share permission.


create share_permission nfs access_name=? share_id=? access_type=? sync_enabled=? all_squash_enabled=? root_squash_enabled=? [ secure_enabled=? ] [ charset=? ] [ anonymous_user_id=? ]






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.

5. The fully qualified domain name (FQDN) is recommended.


NFS share ID.

The value ranges from 1 to 18446744073709551615.


NFS share access type.

Possible values are "read_only" or "read_write", where:

  • "read_only": read-only permission.
  • "read_write": read and write permission.


Whether NFS share write synchronization is enabled.

Possible values are "yes" or "no", where:

  • "yes": NFS share write synchronization is enabled.
  • "no": NFS share write synchronization is disabled.


Whether the permissions of all users that access the NFS share are compressed.

Possible values are "yes" or "no", where:

  • "yes": The permissions of all users are compressed.
  • "no": The permissions of all users are not compressed.


Whether the permissions of super users that access the NFS share are compressed.

Possible values are "yes" or "no", where:

  • "yes": The permissions of super users are compressed.
  • "no": The permissions of super users are not compressed.


Whether an NFS share supports security ports.

Possible values are "yes" or "no", where:

  • "yes": Secure ports are enabled.
  • "no": Secure ports are not supported.


Encoding mode of the NFS share.

The value can be "UTF-8", "JIS", "S-JIS", "EUC-JP", "DE", "ZH", "GBK", "EUC-TW", "BIG5", "PT", "FR", "IT", "ES", "KO" or "default", where:

  • "UTF-8": UTF-8 encoding.
  • "ZH": simplified Chinese.
  • "GBK": simplified Chinese.
  • "EUC-TW": traditional Chinese.
  • "BIG5": traditional Chinese.
  • "EUC-JP": EUC-JP encoding.
  • "JIS": JIS encoding.
  • "S-JIS": Shift-JIS encoding.
  • "DE": German.
  • "PT": Portuguese.
  • "ES": Spanish.
  • "FR": French.
  • "IT": Italian.
  • "KO": Korean.
  • "default": inherits the encoding mode configured for the share.


Mapping value of the UID and GID of an anonymous NFS share user.

The value is an integer ranging from 0 to 4294967294.



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 secure_enabled=no charset=GBK anonymous_user_id=65533 
Command executed successfully.

System Response


Updated: 2019-09-02

Document ID: EDOC1000181601

Views: 332108

Downloads: 41

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