user-password-set
Use this command to set a password for a user on the switch.
Syntax user-password-set
name name-string |
Specify the name of the user to set the password. |
Specify any of the following options: |
|
scope local|fabric |
Specify if the scope is local or fabric. |
uid uid-number |
Specify the user ID. |
type netvisor|unix|tacacs|web-token|mfg |
Specify the user type. |
server aaa-tacacs-name |
Specify the name of the TACACS+ server. |
initial-role role-name |
Specify the initial role of the user. |
login-fail-count login-failcount-number |
Specify the numbers of allowed authentication failures before locking the user. |
lock-account|no-lock-account |
Specify if you want to lock the user after the stipulated number of authentication failures. |
minimum-pw-length 6..65 |
Specify the minimum password length for user account. |
Defaults None.
Access CLI
History
Version 1.2 |
Command introduced. |
Version 2.1 |
Command changed to user-password-set. |
Version 2.6.2 |
The parameter type added. |
Version 7.0.0 |
The parameters login-fail-count, lock-account|no-lock-account, and minimum-pw-length added. |
Usage You can set a password for the user.
Examples To set the password for user, admin-net, on the TACACS+ server, aaa-tacacs, with the user ID 23, with the initial role, admin, use the following command:
CLI (network-admin@switch) > user-password-set name admin-net scope local uid 23 server aaa-tacacs initial-role admin
To change the current password for user1 , and to change the minimum password length, use the command:
CLI (network-admin@switch) > user-password-set name user1 scope local minimum-pw-length 7
password:
confirm password: