password
Use password to configure a password for a device management user.
Use undo password to restore the default.
Syntax
In non-FIPS mode:
password [ { hash | simple } string ]
undo password
In FIPS mode:
password
Default
In non-FIPS mode, a device management user does not have a password and can pass authentication after entering the correct username and passing attribute checks.
In FIPS mode, a device management user does not have a password and cannot pass authentication.
Views
Device management user view
Predefined user roles
network-admin
mdc-admin
Parameters
hash: Specifies a password encrypted by the hash algorithm.
simple: Specifies a password in plaintext form. For security purposes, the password specified in plaintext form will be stored in encrypted form.
string: Specifies the password string. This argument is case sensitive.
In non-FIPS mode:
The hashed form of the password is a string of 1 to 110 characters.
The plaintext form of the password is a string of 1 to 63 characters.
In FIPS mode, the password is in plaintext form and is a string of 15 to 63 characters. The string must contain digits, uppercase letters, lowercase letters, and special characters.
Usage guidelines
If you do not specify any parameters, you enter the interactive mode to set a plaintext password.
In non-FIPS mode, a device management user for which no password is specified can pass authentication after entering the correct username and passing attribute checks. To enhance security, configure a password for each device management user.
In FIPS mode, a password is required for a device management user to pass authentication. You must set the password in interactive mode.
Examples
# Set the password to 123456TESTplat&! in plaintext form for device management user user1.
<Sysname> system-view [Sysname] local-user user1 class manage [Sysname-luser-manage-user1] password simple 123456TESTplat&!
# Configure the password in interactive mode for device management user test.
<Sysname> system-view [Sysname] local-user test class manage [Sysname-luser-manage-test] password Password: confirm :
Related commands
display local-user