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 10

OceanStor 18500 V3 and 18800 V3 Mission Critical 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).
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=?

Parameters

Parameter

Description

Value

share_permission_id=? NFS share permission ID.

The value ranges from 1 to 18446744073709551615.

access_type=? NFS share access permission.

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.

Level

Administrator

Usage Guidelines

None.

Example

  • Query NFS share permission settings 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
  • Modify 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
    Command executed successfully.
  • Query NFS share permission settings 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

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000084078

Views: 304957

Downloads: 253

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