Previous page Next page

username

Defines a local login account, or changes a user’s password.

Syntax
username <name> password [ encrypted ] <pwd>
 
no username [ <name> ]
 
Arguments
Prerequisites

Must be in configuration mode (config), which requires privileged-level access.

Occurrence

Available for use multiple times in the configuration.

Default

No password.

Description

Use the no form of the command with an existing username to remove that username account.

Use the no form of the command without an argument to remove all local login accounts.

Use the encrypted keyword if the value of pwd has already been encrypted by CNA (copied from an existing configuration).

When you boot a new installation of CNA, no user account is needed to obtain a CLI prompt, although you can only use a console port connection. Once you create a local account, however, this userless access is no longer allowed. You must log in to obtain a command prompt. (For information about obtaining a command prompt without a password, see Password Recovery in Chapter 2: Configuration Fundamentals of the CNA Fundamentals Guide.)

Local login accounts provide users with access to CNA even when you lose connectivity with your authentication servers.

Without a local login account, you will be locked out of CNA unless an authentication server is online.

You may have multiple user accounts.

If the name value specifies an existing user account, that account’s password will be changed to the value of pwd currently being specified.

For example, create the this_user account with the password abc, as follows:

username this_user password abc
 

 

The password for the this_user account is now abc.

Now re-enter the user name command with the same user ID but a different password, xyz:

username this_user password xyz
 

 

The password for the this_user account is now xyz.


Previous page Next page