To create a user and sets the password and the privilege level for the user, use the username command in Global Configuration Mode. The no form of the command deletes the specified user.
Parameter | Type | Description |
---|---|---|
<user-name> |
Specify the login user name to be created | |
password |
Specifies the password to be entered by the user to login to the system, and password encryption to be used. The size password entered must be a minimum of 8 and maximum of 20 characters containing at least one uppercase, one lowercase, one number and one special character. The password encryption options are as follows: | |
0 |
Integer | Uses the unencrypted password |
7 |
Integer | Uses the hidden password |
LINE |
Uses the Line password; This feature is currently not supported | |
<string(8-20)> |
integer | Specifies that the size of password entered must be a minimum of 8 and maximum of 20 characters |
privilege <1-15> |
integer | Applies restriction to the user for accessing the CLI commands. This values ranges between 1 and 15. For example, a user ID configured with privilege level as 4 can access only the commands having privilege ID lesser than or equal to 4 |
confirm-password |
Specifies the password to be entered by the user to login to the system, and password encryption to be used. The size password entered must be a minimum of 8 and maximum of 20 characters containing at least one uppercase, one lowercase, one number and one special character. The password encryption options are as follows: | |
0 |
Integer | Uses the unencrypted password |
7 |
Integer | Uses the hidden password |
LINE |
Uses the Line password; This feature is currently not supported | |
<string(8-20)> |
integer | Specifies that the size of password entered must be a minimum of 8 and maximum of 20 characters |
status |
Specifies the status of the user name | |
enable |
Enables the user name |
Global Configuration Mode
iS5Comm (config)# username products password Prod@1234 privilege 15
The user products are created with the privilege level 15. Hence, the user will be visible to view all commands.
iS5Comm (config)# username support password Supp@123 privilege 1