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 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_homedir_rule cifs

create share_homedir_rule cifs


The create share_homedir_rule cifs command is used to create mapping rule of homedir share.


create share_homedir_rule cifs share_id=? user_name=? path=? [priority=?] [auto_create=?]





share_id=? Indicates the share ID.

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

user_name Indicates the user name.

The parameter value contains 1 to 255 characters, it can be a normal user or an active directory user. The active directory user name connects domain name and user name using '\', and there is only one '\'. Also support wildcard character '*', There is only one '*' in user name, and only be the last character. The user name cannot contain ""/[]<>+:;,?=|@" and space, and the end character cannot be '.'.

path Indicates the filesystem path of user's homedir.

The parameter value contains 1 to 1023 characters.

priority Indicates the rule priority.

The value is an integer ranging from 1 to 1024.The default value is 32.

auto_create Indicates auto create user's homedir.

The value can be "yes" or "no", where:

  • "yes": enable the auto create function.
  • "no": disable the auto create function.
The default value is "yes".



Usage Guidelines

Parameters share_id, user_name and path must be entered at the same time.


  • Create a mapping rule of homedir share.

    admin:/>create share_homedir_rule cifs share_id=3 user_name=china/* path=/fs0
    Command executed successfully.
  • Query the created mapping rule.

    admin:/>show share_homedir_rule cifs
      Rule ID       Share ID  Name       FileSystem ID  Priority  Auto Create  Path   
      ------------  --------  ---------  -------------  --------  -----------  -----  
      154618822789  36        #$%        0              32        YES          /fs0/  
      154618822788  36        #%#$%      0              32        YES          /fs0/  
      304942678150  71        1          0              32        NO           /fs0/  
      287762808963  67        asdfsadf   0              1024      NO           /fs0/  

System Response


Updated: 2020-01-17

Document ID: EDOC1000181601

Views: 378440

Downloads: 49

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next