Examples
# Add a device management user named user1.
<Sysname> system-view
[Sysname] local-user user1 class manage
[Sysname-luser-manage-user1]
Related commands
•
display local-user
•
service-type
password
Use password to configure a password for a local user.
Use undo password to delete the password of a local user.
Syntax
In non-FIPS mode:
password [ { hash | simple } password ]
undo password
In FIPS mode:
password
Default
•
In non-FIPS mode, there is no password configured for a local user. A local user can pass
authentication after entering the correct username and passing attribute checks.
•
In FIPS mode, there is no password configured for a local user. A local user cannot pass
authentication.
Views
Local user view
Predefined user roles
network-admin
mdc-admin
Parameters
hash: Sets a hashed password.
simple: Sets a plaintext password.
password: Specifies the password string. This argument is case sensitive.
•
In non-FIPS mode:
A hashed password is a string of 1 to 110 characters.
A plaintext password is a string of 1 to 63 characters.
•
In FIPS mode, a password is a plaintext string of 15 to 63 characters and must contain digits,
uppercase letters, lowercase letters, and special characters (see "Password control
commands").
Usage guidelines
If you do not specify any parameters or the device operates in FIPS mode, you enter the interactive
mode to set a plaintext password.
23