The user password command configures an AS administrator in an AS administrator profile.
The undo user command deletes an AS administrator in an AS administrator profile.
By default, no AS administrator is configured in an AS administrator profile.
This command can only be executed on a parent switch.
Parameter | Description | Value |
---|---|---|
user-name | Specifies a 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:
|
password | Specifies the password. |
The value is a string of case-sensitive
characters without spaces. By default, the value is a string of 8
to 128 characters or 48 to 188 characters. You can enter a password
in plain text or cipher text. The password is displayed in cipher
text in the configuration file regardless of whether the password
is input in plain or cipher text.
The newly configured password cannot be the default password admin@huawei.com of local users.
|
Usage Scenario
After creating an AS administrator profile, you can configure an AS administrator in the profile, including the user name and password. After the profile is bound to an AS, the user name and password for login are automatically configured on the AS. The following configuration is generated on the AS:
# aaa local-user user-name password irreversible-cipher password local-user user-name privilege level 3 local-user user-name service-type terminal ssh #
After an AS user name and password are configured, you need to enter the correct user name and password when logging in to an AS through the console port. When you log in to an AS from the parent using the attach as name as-name command, you can log in to the AS without entering the user name or password.
Precautions
When no AS user name and password are configured, you need to enter the default password admin@huawei.com when logging in to an AS through the console port.
The default password has security risks. You are advised to change the login password.