Configuring the password length rule

About this task

Configure the password length rule after you enable enhanced secure mode. By default, the minimum password length is 15.

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. Configure the password length rule option:

    password min-passwd-len <8–32>

  3. Optional: Configure the password length rule to the default:

    default password min-passwd-len

  4. 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 the password length rule to 20:

Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#password min-passwd-len 20
Switch:1(config)#save config

Variable definitions

Use the data in the following table to use the password min-passwd-len command.

Variable

Value

<8–32>

Configures the minimum character length required. The default is 15.