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 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI provided by DeviceManager, 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).
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=?]






Indicates the share ID.

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


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


Indicates the filesystem path of user's homedir.

The parameter value contains 1 to 1023 characters.


Indicates the rule priority.

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


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: 2019-07-12

Document ID: EDOC1000138390

Views: 252770

Downloads: 150

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