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 user

create user


The create user command is used to create users or user groups. You can create different levels of users to manage and utilize the storage system by running this command.


create user type=? user_name=? level=? [ role_id=? ] [ password_never_expire=? ]





type=? Type of a user.

The value can be "local", "domain_user", or "domain_group", where:

  • "local": indicates a local user.
  • "domain_user": indicates a domain user.
  • "domain_group": indicates a domain group.
user_name=? Name of a user or user group.
  • For a local user, the value must start with a letter and contain 5 to 32 ASCII characters including digits, letters, and underscores (_).
  • For a domain user or a domain group, the value contains 1 to 64 ASCII characters for which the start and end characters cannot be spaces(spaces are expressed in "\s"), and double quotation marks (") and single quotation mark (')and question mark (?) and pound sign(#) and asterisk(*) and colon(:) and left parentheses(() and right parentheses()) are excluded.
level=? Level of a user or user group. For a vStore user, the level can be admin or guest only.

The value can be "super_admin", "admin", or "guest", where:

  • "super_admin": indicates a user at the super administrator level.
  • "admin": indicates a user at the administrator level.
  • "guest": indicates a user at the guest level.
The value of "super_admin" can be specified only when "type" is set to "local".
role_id=? User role ID. If this parameter is not specified, the system automatically allocates a role for a user based on the user type and level. The role of a super_admin user must be super_administrator. The default role of other system users is administrator and the default role of vStore users is vStore_administrator.

In the system view, you can run the show role system command to obtain the system group role. In the vStore view, you can run the show role vstore command to obtain the vStore group role.

password_never_expire Sets a user password to never expire. If this parameter is set, the user password does not expire. This parameter can be set only when "type" is set to "local".

The value is "yes".


Super administrator

Usage Guidelines

  • In the level-1 view, only storage system administrators can be created. If you need to create vStore administrators, you need to go to the corresponding vStore views.
  • This command provides an interactive mode for entering passwords. When you are entering a password, nothing is displayed on the screen.
  • The password contains 8 to 16 characters and is case sensitive by default.
  • The password must contain spaces and special characters (` ~ ! @ # $ % ^ & * ( ) - _ = + \ | [ { } ] ; :' " , < . > / ?).
  • The password must meet password complexity requirements:
    • When "password complex" is set to "Normal", the password must contain at least two types of the following characters: lowercase letters, uppercase letters, and digits.
    • When "password complex" is set to "High", the password must contain lowercase letters, uppercase letters, and digits.
  • The password cannot be the same as the user name or the mirror writing of the user name.
  • The password cannot contain four consecutive same characters.
You can run the "change safe_strategy" command to change the password and login policies of a storage system.


Create local administrator "testuser".

admin:/>create user type=local user_name=testuser level=admin role_id=2
Reenter password:*********
Command executed successfully.

System Response


Updated: 2020-01-17

Document ID: EDOC1000181601

Views: 377029

Downloads: 49

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next