username

This topic explains the commands that add, change, or delete user accounts in the local database.

Syntax

CODE
username name algorithm-type sha256 secret password
no username name

Parameter

name: The user name that must be added. The name parameter represents the user name and can consist of a maximum number of 32 characters. You can use alphabetical and digital characters and the following special characters: ! # $ % & ( ) * + , - / ; < = > @ [ ] ^ _ ` { | } ~ \

password: The password that must be associated with the user name. The password parameter represents the password in non-encrypted format. The password can be from 8 to 20 characters, and must include at least one uppercase letter, one lowercase letter, and one number. You can use alphabetical and digital characters and the following special characters: ! # $ % & ( ) * + - . / : ; < = > @ [ ] ^ _ ` { | } ~

Default

User name "admin" with password "password" and privilege level 15.

Mode

Global Configuration

Usage

Use the username command to add a new user account or change an existing user account.

Use the no username command to delete an existing user account. You cannot remove the default admin account.

The user accounts are stored in the local database for login authentication.

Example

This example shows how to add a new user account with the name NewUser and password QaZWSx123:

CODE
Switch(config)# username NewUser algorithm-type sha256 secret QaZWSx123