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

Reminder

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

upgrade

Command Reference

OceanStor 18000 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese 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).
change share_permission nfs

change share_permission nfs

Function

The change share_permission nfs command is used to modify NFS share permission settings.

Format

change share_permission nfs share_permission_id=? { access_type=? | sync_enabled=? | all_squash_enabled=? | root_squash_enabled=? | secure_enabled=? | charset=? | anonymous_user_id=? } *

Parameters

Parameter

Description

Value

share_permission_id=?

NFS share permission ID.

The value ranges from 1 to 18446744073709551615.

access_type=?

NFS share access permission.

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

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

sync_enabled=?

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.

all_squash_enabled=?

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.

root_squash_enabled=?

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.

secure_enabled=?

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.

charset=?

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.

anonymous_user_id=?

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

The value is an integer ranging from 0 to 4294967294.

Level

Administrator

Usage Guidelines

None

Example

  • Query the NFS share permission before the modification.
    admin:/>show share_permission nfs share_permission_id=1 
    Share Permission ID : 1  
    Access Name      : 10.90.96.90  
    Share ID       : 1  
    Access Type      : Read Only  
    Sync Enabled     : Yes  
    All Squash Enabled  : Yes  
    Root Squash Enabled : Yes 
    Secure Enabled : Yes 
    CharSet           : default 
    Anonymous User ID : 65534
  • Modify the NFS share permission.
    admin:/>change share_permission nfs share_permission_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 
    WARNING: You are about to modify the permission configurations of the NFS share. This operation may cause the following problems: 
    1. If this operation changes the character encoding mode of the NFS share permission, garbled characters may be displayed or services may be interrupted. 
    2. If this operation changes the anonymous user ID of the NFS share permission, services may be interrupted. 
    Suggestion: Confirm that you want to perform this operation based on the service type. 
    Have you read warning message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • Query the NFS share permission after the modification.
    admin:/>show share_permission nfs share_permission_id=1 
    Share Permission ID : 1  
    Access Name : 10.90.96.90  
    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

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138390

Views: 228205

Downloads: 150

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