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 10

OceanStor 18500 V3 and 18800 V3 Mission Critical Storage System V300R003

"Based on the CLI, 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).
change user

change user

Function

The change user command is used to perform the following operations for a specific user, including resetting passwords, changing user levels, forcing the user offline and changing the password at the next login.

Format

change user user_name=? { level=? | action=? }

Parameters

Parameter

Description

Value

user_name=? User name.

To obtain the value, run "show user" without parameters. Spaces contained in the user name are expressed in "\s".

level=? New user level.

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

  • "admin": administrator.
  • "guest": read-only user.
action=? Operation on a user.

The value can be "reset_password", "offline", or "change_password_next_login", where:

  • "reset_password": resets a user's password.
  • "offline": forces a user offline.
  • "change_password_next_login": enables a specific user to change its password upon next login.

Level

Super administrator

Usage Guidelines

  • Run the "change user user_name=? level=?" command to change a user's level. This command can only be used to change the levels of storage system administrators and read-only users.
  • Run the "change user user_name=? action=reset_password" command to reset a user's password. Only the passwords of administrators and read-only users can be reset. If the password of a user is entered incorrectly for three consecutive times within five minutes, the user is forced to log out.
  • Run the "change user user_name=? action=offline" command to force a specific user offline. Only the administrators and read-only users can be forced offline.
  • Run the "change user user_name=? action=change_password_next_login" command to enable a specific user to change its password upon next login. This command applies to the administrators and read-only users only.

Example

  • Changing the level of "testuser" to read-only.

    admin:/>change user user_name=testuser level=guest
    WARNING: You are about to change the user level. This operation will change the user's operation permission.
    Suggestion: Before performing this operation, ensure that the selected user level is correct.
    Have you read warning message carefully?(y/n)y
    Are you sure you really want to perform the operaton?(y/n)y
    Command executed successfully.
  • Enabling "testuser" to change its password upon next login.

    admin:/>change user user_name=testuser action=change_password_next_login
    WARNING: You are about to set changing the password at the next login. The user must change the password upon the next login.
    Suggestion: Before performing this operation, learn about the impact of this operation on the user.
    Have you read warning message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • Resetting the password of "testuser".

    admin:/>change user user_name=testuser action=reset_password
    New password:**********
    Reenter password:**********
    Password:**********
    Command executed successfully.
  • Forcing "testuser" offline.

    admin:/>change user user_name=testuser action=offline
    DANGER: You are about to log off the selected user. After this operation, the user can no longer manage the device unless relogs in to the device. 
    Suggestion: Before performing this operation, learn about the impact of this operation on the user.
    Have you read danger alert message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • Verifying the updated settings.

    admin:/>show user user_name=testuser
      Name      Level  Status   Type   Lock Status  Create Time    Domain User Group   Account Status
      --------  -----  -------  -----  -----------  -----------------------------  -----------------  ----------
      testuser  Guest  Offline  Local  Unlocked     2015-07-29/16:37:30 UTC+08:00  --

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000084078

Views: 317588

Downloads: 253

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