Configure a Password for a Specific User

Configure a new password for a user if the password has expired or locked. Only the administrator can configure a password for a user.

Before you begin

  • You must enable enhanced secure mode in either the JITC or non-JITC sub-modes. As a best practice, use the non-JITC sub-mode because the JITC sub-mode is more restrictive and prevents the use of some troubleshooting utilities.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Create accounts on the switch for different access levels:

    password set–password user-name WORD<1–255>

  3. Save the configuration:

    save config

    Note

    Note

    The save config command saves the configuration file with the filename configured as the primary configuration filename in boot config. Use the command show boot config choice to view the current primary and backup configuration filenames.

Example

Configure a password for jsmith:

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#password set–password user-name jsmith
Enter the New password : *********************
Switch:1(config)#Password modified for user jsmith
Switch:1(config)#save config

Variable definitions

Use the data in the following table to use the password set-password command.

Variable

Value

user-name WORD<1–255>

Specifies the user for which to configure the password.