71
Default
No password is set for a user role.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
role
rolename
: Specifies a user role, a case-sensitive string of 1 to 63 characters. The user role must
exist in the system. If you do not specify a user role, the command sets a password for the default
target user role.
hash
: Sets a hashed password.
simple
: Sets a plaintext password. This password will be saved in hashed text for security purpose.
password
: Specifies the password string. This argument is case sensitive.
•
In non-FIPS mode:
{
If
simple
is specified, the password must be a string of 1 to 63 characters.
{
If
hash
is specified, the password must be a string of 1 to 110 characters.
•
In FIPS mode, the password must be a string of 15 to 63 characters. The string must contain
four character types including digits, uppercase letters, lowercase letters, and special
characters.
Usage guidelines
If you do not specify any parameters, you specify a plaintext password in the interactive mode.
The FIPS mode supports only the interactive mode for setting a password.
Set a password if you configure local password authentication for temporary user role authorization.
It is a good practice to specify different passwords for different user roles.
Examples
# Set the password to
123456TESTplat&!
for the network-operator user role.
<Sysname> system-view
[Sysname] super password role network-operator simple 123456TESTplat&!
# Set the password to
123456TESTplat&!
in interactive mode for the network-operator user role.
<Sysname> system-view
[Sysname] super password role network-operator
Password:
Confirm :
Related commands
super authentication-mode
super default role
vlan policy deny
Use
vlan policy deny
to enter the user role VLAN policy view.
Use
undo vlan policy deny
to restore the default user role VLAN policy.