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 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5 storage systems. It describes hardware installation of those storage systems for helping you easily and quickly finish the installation.

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 cifs

create share_permission cifs

Function

The create share_permission cifs command is used to create a CIFS share permission.

Format

create share_permission cifs access_name=? share_id=? permission_type=? [ domain_type=? ]

Parameters

Parameter

Description

Value

access_name=? Access name, which can be a resource user or user group, AD domain user or user group, LDAP domain user or user group, or NIS domain user or user group.
  • The value contains 1 to 288 characters.
  • Add special character @ before a resource user group name, LDAP domain user group name, or NIS domain user group name to distinguish it from a resource user name, LDAP domain user name, or NIS domain user name.
  • The name of an AD domain user or user group must be in the format of domain name\\domain user name or @domain name\\domain user group name.
  • The type of an LDAP or NIS domain user or user group must be specified by parameter "domain_type=?".
share_id=? Share ID.

The value is an integer ranging from 0 to 18,446,744,073,709,551,615.

permission_type=? Permission type.

The value can be "read_only", "read_write", "no_access", or "all_control", where:

  • read_only: The user has the read-only permission.
  • read_write: The user has the read and write permission.
  • no_access: The user has no permission.
  • all_control: The user has the read and write permission and can change the permission.
domain_type=? User or user group type.

The value can be "Local", "AD", "LDAP", or "NIS", where:

  • "AD": AD domain user or user group.
  • "LDAP": LDAP domain user or user group.
  • "Local": local user or user group.
  • "NIS": NIS domain user or user group.

Level

Administrator

Usage Guidelines

Parameters "access_name", "share_id", and "permission_type" must be entered at the same time.

Example

  • Create a CIFS share permission with "access_name" being a resource user.

    admin:/>create share_permission cifs access_name=user1 share_id=4 permission_type=all_control
    Command executed successfully.
  • Create a CIFS share permission with "access_name" being a resource user group.

    admin:/>create share_permission cifs access_name=@group1 share_id=4 permission_type=all_control
    Command executed successfully.
  • Create a CIFS share permission with "access_name" being an AD domain user.

    admin:/>create share_permission cifs access_name=trust-a\\aduser01 share_id=4 permission_type=all_control
    Command executed successfully.
  • Create a CIFS share permission with "access_name" being an AD domain user group.

    admin:/>create share_permission cifs access_name=@trust-a\\adgroup01 share_id=4 permission_type=all_control
    Command executed successfully.
  • Create a CIFS share permission with "access_name" being an NIS domain user.

    admin:/>create share_permission cifs access_name=user2 share_id=4 permission_type=all_control domain_type=NIS
    Command executed successfully.
  • Create a CIFS share permission with "access_name" being an LDAP domain user group.

    admin:/>create share_permission cifs access_name=@group2 share_id=4 permission_type=all_control domain_type=LDAP
    Command executed successfully.
  • Query the permission creation result.

    admin:/>show share_permission cifs share_id=4
    Share Permission ID Access Name Share ID Domain Type Permission Type 
    ------------------- ----------- -------- ----------- --------------- 
    1 user1 4 Local All Control 
    2 @group1 4 Local All Control
    3 trust-a\aduser01 4 AD All Control
    4 @trust-a\adgroup01 4 AD All Control
    5 user2 4 NIS All Control 
    6 @group2 4 LDAP All Control

System Response

None

Translation
Download
Updated: 2020-03-19

Document ID: EDOC1000181601

Views: 406311

Downloads: 56

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next