< Home

password (administrator view)

Function

The password command sets the password for an administrator account.

Format

password [ cipher cipher-password ]

Parameters

Parameter Description Value

password

Enables password authentication.

Passwords can be set in either of the following methods:

  • Specifies the password by cipher password
  • Interactive

cipher cipher-password

Specifies the cipher-text password, which is saved in cipher text in the configuration file.

Encryption algorithm is scrypt.

NOTE:

The device encrypts the password using a one-way encryption algorithm so that the password cannot be derived from the encrypted password.

  • The value is a string that contains 8 to 64 characters and is saved in 56-character cipher text.
  • To enhance security, a password must meet the minimum strength requirements, that is, the password needs to contain at least three types of the following characters: uppercase letters (A to Z), lowercase letters (a to z), digits (0 to 9), and special characters, such as exclamation points (!), at signs (@), number signs (#), dollar signs ($), and percent (%).
  • The password cannot contain more than two identical characters in a row.
  • The password cannot be the same as the administrator name or reverse of the administrator name.

Please keep the character string you entered safe for your next login.

Views

Administrator view

Default Level

2: Configuration level

Usage Guidelines

A password must be set for local authentication, not server authentication.

When you use this command to change your password, the old password is verified. If you fail to enter the correct current password after three attempts, the system will log your account out, and you need to re-login. When you change the password of an administrator with a lower level, the old password of the administrator is not required.

After you use this command to change your password successfully, the system will also log your account out, and you need to re-login.

The interactive mode is recommended for creating administrator passwords because the passwords configured by the cipher password command are not safe.

Example

# Set a ciphertext password to Password123 for an administrator account named abc in interactive mode.

<sysname> system-view
[sysname] aaa
[sysname-aaa] manager-user abc
[sysname-aaa-manager-user-abc] password
Enter Password: 
Confirm Password:   
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >