Enabling the Password Prompt for the Username
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
Step 2
[no] userpassphrase {min-length min-length | max-length
max-length}
Example:
switch(config)# userpassphrase min-length 8
max-length 80
Step 3
(Optional) show userpassphrase {length | max-length |
min-length}
Example:
switch(config)# show userpassphrase length
Step 4
(Optional) copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
Enabling the Password Prompt for the Username
You can configure the switch to prompt the user to enter a password after entering the username.
SUMMARY STEPS
1. configure terminal
2. password prompt username
3. (Optional) copy running-config startup-config
DETAILED STEPS
Command or Action
Step 1
configure terminal
Example:
switch# configure terminal
Step 2
password prompt username
Example:
switch(config)# password prompt username
Password prompt username is enabled.
After providing the required options in the
username command, press enter.
User will be prompted for the username password
and password will be hidden.
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
32
Purpose
Enters global configuration mode.
Restricts the minimum and/or maximum length of the user
password. The minimum password length is from 4 to 127
characters, and the maximum password length is from 80
to 127 characters.
Displays the minimum and maximum length of the user
password.
Copies the running configuration to the startup
configuration.
Purpose
Enters global configuration mode.
Configures the switch to prompt the user to enter a password
after she enters the username command without the
password option or the snmp-server user command. The
password that the user enters will be hidden. You can use
the no form of this command to disable this feature.
Configuring AAA