R3166-R3206-HP High-End Firewalls Access Control Command Reference-6PW101
89
Description
Use the password command to configure a password for a local user and specify whether to display the
password in cipher text or plain text.
Use the undo password command to delete the password of a local user.
When the password control feature is enabled globally (by using the password-control enable
command), local user passwords, such as the length and complexity, will be under the restriction of the
password control feature, and will not be displayed. In addition, the local-user password-display-mode
command will be ineffective.
When the password control feature is not enabled globally, if you configure the local-user
password-display-mode cipher-force command, all existing local user passwords will be displayed in
cipher text regardless of the configuration of the password command. If you also save the configuration
and restart the device, all existing local user passwords will always be displayed in cipher text, no matter
how you configure the local-user password-display-mode command or the password command. The
passwords configured after you restore the display mode to auto by using the local-user
password-display-mode auto command, however, are displayed as defined by the password command.
With the cipher keyword specified, a password of up to 16 characters in plain text will be encrypted into
a password of 24 characters in cipher text, and a password of 16 to 63 characters in plain text will be
encrypted into a password of 88 characters in cipher text. For a password of 24 characters, if the system
can decrypt the password, the system treats it as a password in cipher text. Otherwise, the system treats
it as a password in plain text.
Related commands: display local-user and local-user password-display-mode.
Examples
# Set the password of local user user1 to 123456 and set the display mode to plain text.
<Sysname> system-view
[Sysname] local-user user1
[Sysname-luser-user1] password simple 123456
# Set the password of local user user1 to 123456 in interactive mode.
<Sysname> system-view
[Sysname] local-user user1
[Sysname-luser-user1] password
Password:******
Confirm :******
service-type
Syntax
service-type { ftp | { ssh | telnet | terminal } * | portal | ppp }
undo service-type { ftp | { ssh | telnet | terminal } * | portal | ppp }
View
Local user view
Default level
3: Manage level