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

OceanStor 2200 V3 and 2600 V3 Storage System V300R005 Command Reference 06

"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."
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.

Possible values are 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.

Possible values are 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.

Possible values are 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.

Possible values are yes and no, where:

  • yes: Squashing super users is enabled.
  • no: Squashing super users is disabled.

Level

Administrator

Usage Guidelines

This command does not support OceanStor 2200 V3 storage system.

Example

  • To query NFS share permission settings before the modification, run the following command:

    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
  • None

    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.
  • None

    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: EDOC1000106139

Views: 316558

Downloads: 207

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