2.1.34. username

Syntax

username WORD<0-32> [privilege (admin|user|<0-15>)] (nopassword | password UNENCRYPTED-PASSWORD | secrect UNENCRYPTED-PASSWORD | secret encrypted ENCRYPT-PASSWORD)

no username WORD<0-32>

Parameter


username WORD<0-32> Specify user name to add/delete/edit.

privilege admin Specify privilege level to be admin (privilege 15)

privilege user Specify privilege level to be user (privilege 1)

privilege <0-15> Specify custom privilege level

nopassword Specify do not use password

password Specify password string and make it UNENCRYPTED-PASSWORD not encrypted.

secret UNENCRYPTED-PASSWORD Specify password string and make it encrypted.

secret encrypted Enter an encrypted password. Use this ENCRYPT-PASSWORD keyword to enter a password that is already encrypted (for instance, a password that you copied from another the configuration file of another device).


Default

Default username “admin” has password “admin” with privilege 15.

Mode

Global Configuration

Usage

Use username command to add a new user account or edit an existing user account. And use “no username” to delete an existing user account. The user account is a local database for login authentication.

Example

This example shows how to add a new user account.

Switch(config)# username test secret passwd

This example shows how to show existing user accounts.

Switch# show username
Priv | Type | User Name | Password
------+--------+--------------------+-----------
01 | secret | | dnXencJRwflV6
15 | secret | admin | FzjrGO6vfbERY
15 | secret | test | 7p57T9yMkViSUS