user password

Syntax

userpassword [ciphertext| plaintext]

Description

Changes a password for an account or enables the password for the admin account. When entered without either optionalciphertextorplaintextparameters, the cleartext password is prompted for twice, with the characters entered masked with "*" symbols.

Command context

config

Parameters

Specifies the corresponding user name for the password you want to change.
ciphertext
Specifies a ciphertext password. No password prompts are provided and the ciphertext password is validated before the configuration is applied for the user. The variableis Base64 and is typically copied from another switch using theshow running-configcommand output and then pasted into this command.
NOTE:The administrator cannot construct ciphertext passwords themselves. The ciphertext is only created by anAOS-CXswitch. The ciphertext is created by setting a password for a user with theusercommand. The ciphertext is available for copying from theshow running-configoutput and pasting into the configuration on any otherAOS-CXswitch. The target switch must have the same export password (default or otherwise) as the source switch.
plaintext

Specifies the password without prompting. The password is visible as cleartext when entered but is encrypted thereafter. Command history does show the password as cleartext.

Authority

Administrators or local user group members with execution rights for this command.

Usage

The admin account is available on the switch without a password by default.

Cleartext passwords (whether entered with prompting or entered directly) must:

  • Contain only ASCII characters from hexadecimal 21 to hexadecimal 7E [\x21-\x7E] (decimal 33 to 126). Spaces are not allowed. When the password is entered directly without prompting, the "?" symbol (hexadecimal 3F [\x3F] (decimal 63)) is not permitted.

  • Contain at most 32 characters.

  • 包含至少configur字符的数量ed (optionally) forminimum-password-length.

    CAUTION:Although empty passwords are supported, it is recommended that you use strong passwords for all production switches.
    NOTE:Only an administrator can change the password of a user assigned to theoperatorsrole.

Examples

Enabling (or changing) a cleartext password foradmin:

switch(config)#user admin passwordChanging password for user admin Enter password:************Confirm password:************

Changing the cleartext password for userchris, using direct entry without prompting:

switch(config)#user chris password plaintext PASSwordZQ#@67

Changing the ciphertext password for useralex(the ciphertext shown is a placeholder that must be replaced with actual ciphertext):

switch(config)#user alex password ciphertext XqYJ36...W83D4Y=