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 for Block

OceanStor Dorado V3 Series V300R002

This document is applicable to OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3 and Dorado18000 V3. Based on the CLI provided by the 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.
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 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.


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 is 1 to 64 ASCII characters. The start and end characters cannot be spaces (spaces are expressed in "\s"), and cannot contain double quotation marks ("), single quotation marks ('), question marks (?), number signs (#), asterisks (*), colons (:), left parentheses ((), and right parentheses ()).


Level of a user or user group.

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


User role ID. If this parameter is not specified, the system automatically allocates a role for a user based on the user level. The role of a super_admin user can be a super administrator or storage administrator, and the storage administrator does not have the permission to change keys. The default role of other system users is an administrator.

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


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

  • This command provides an interactive mode for entering passwords. When you are entering a password, nothing is displayed on the screen.
  • The password consists of 8 to 16 characters and is case-sensitive.
  • The password must contain special characters including ` ~ ! @ # $ % ^ & * ( ) - _ = + \ | [ { } ] ; :' " , < . > / ? and spaces.
  • The password must meet password complexity requirements:
    • When "password complex" is set to "Normal", the password must contain at least two of the following three: 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 must be different from the user name and the user name in reversed order.
  • One character must not appear for more than three times consecutively.

You can use the "change safe_strategy" command to change the password and login policies of a storage system.


Create a local administrator account "testuser".

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

System Response


Updated: 2019-07-16

Document ID: EDOC1100049140

Views: 123285

Downloads: 155

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