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

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese 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 user

create user

Function

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.

Format

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

Parameters

Parameter

Description

Value

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.
NOTE:

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

Level

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.
NOTE:

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

Example

Create local administrator "testuser".

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

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138390

Views: 226836

Downloads: 150

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