username

To add a user who can access the Cisco CDA appliance using SSH, use the username command in Configuration mode. If the user already exists, the password, the privilege level, or both change with this command. To delete the user from the system, use the no form of this command.

username username password {hash | plain} password role {admin | user] [disabled [email email-address]] [email email-address]

For an existing user, use the following command option:

username username password role {admin | user} password

Syntax Description

username

The command to create a user to access the Cisco CDA appliance using SSH.

username

Only one word for the username argument. Blank spaces and quotation marks (“) are not allowed. Supports up to 31 alphanumeric characters.

password

The command to use specify password and user role.

password

Password character length up to 40 alphanumeric characters. You must specify the password for all new users.

hash | plain

Type of password. Supports up to 34 alphanumeric characters.

role admin | user

Sets the privilege level for the user.

disabled

Disables the user according to the user’s email address.

email email-address

The user’s email address. For example, user1@mydomain.com.

Defaults

The initial user during setup.

Command Modes

Configuration

Usage Guidelines

The username command requires that the username and password keywords precede the hash | plain and the admin | user options.

Examples

Example 1

/admin(config)# username admin password hash ###### role admin

/admin(config)#

Example 2

/admin(config)# username admin password plain Secr3tp@swd role admin

/admin(config)#

Example 3

/admin(config)# username admin password plain Secr3tp@swd role admin email admin123@mydomain.com

/admin(config)#

Related Commands

Command

Description

password-policy

Enables and configures the password policy.

show users

Displays a list of users and their privilege level. It also displays a list of logged-in users.