The local-user password command configures a password for a local account.
By default, the password of a local account is empty.
local-user user-name password
This command is an interactive command. After you enter local-user user-name password and press Enter, you can set the password as prompted. The local user password is a string of 8~128 case-sensitive characters.
Parameter | Description | Value |
---|---|---|
user-name |
Specifies the local user name. |
The value is a string of 1 to 64 characters. It cannot contain spaces, asterisk, double quotation mark and question mark.
NOTE:
During local authentication or authorization, run the authentication-mode { local | local-case } or authorization-mode { local | local-case } command to configure case sensitivity for user names. If the parameter is set to local, user names are case-insensitive. If the parameter is set to local-case, user names are case-sensitive. Note the following when configuring case sensitivity for user names:
|
If no password is configured when a local user is created, the password is empty, and the local user cannot log in to the device.
A simple local user password may bring security risks. The user password must consist of two types of characters, including uppercase letters, lowercase letters, numerals, and special characters. In addition, the password cannot be the same as the user name or user name in a reverse order.
# Set the password to abc@#123456 for the local account hello@163.net.
<HUAWEI> system-view [HUAWEI] aaa [HUAWEI-aaa] local-user hello@163.net password Please configure the login password (8-128) It is recommended that the password consist of at least 2 types of characters, i ncluding lowercase letters, uppercase letters, numerals and special characters. Please enter password: //Enter the password abc@#123456 Please confirm password: //Confirm the password abc@#123456 Info: Add a new user.