3.10.1 Add Local User to the Switch or Change Password

Use this command to add, remove, or change the password of local users. Up to 20 users can be configured.

Command Syntax:

username { default-administrator | <input_username> } privilege <priv> password { unencrypted <unencry_password> | encrypted <encry_password> | none }
Table 3-40. Command Description

Argument

Description

Parameter

<input_username>

User name allows letters, numbers and underscores

<priv>

User privilege level 0–15.

Note: Use only privilege level 15.

<unencry_password>

The unencrypted (plain text) user password. Any printable characters including space are accepted. Note that you have no chance to get the plain text password after this command. The system always displays the encrypted password.

<encry_password>

The encrypted (hidden) user password. Note that the encrypted password is decoded by the system internally. You cannot directly use it as same as the plain text and it is not human-readable text normally.

none

NULL password

Default

N.A

Mode

Global Configuration mode

Usage

Add a new user for the local switch access and add/change password.

Example

Example 1:

Add a user named "usertest" with unencrypted password of "testuser".

(config)# username usertest privilege 15 password unencrypted testuser

Example 2:

Remove user named "usertest".
(config)# no username usertest 

Example 3:

Change the password of "usertest" to "testuser123".

(config)# username usertest privilege 15 password unencrypted testuser123