username
username
To establish a username-based authentication system, use the username command.
Syntax Description
name
secret 0 | 5
password
Defaults
No username-based authentication system is established.
Command Modes
Global configuration mode
Command History
Release
12.1(8a)EW
Usage Guidelines
Use this command to enable enhanced password security for the specified username. This command
enables MD5 encryption on the password. MD5 encryption is a strong encryption method that is not
retrievable. You cannot use MD5 encryption with protocols that require clear-text passwords, such as
CHAP.
You can use this command for defining usernames that get special treatment. For example, you can
define an "info" username that does not require a password but that connects the user to a
general-purpose information service.
The username command provides both username and secret authentication for login purposes only.
The name argument can be only one word. White spaces and quotation marks are not allowed.
You can use multiple username commands to specify options for a single user.
For information about additional username commands, refer to the Cisco IOS Command Reference.
Examples
This example shows how to specify an MD5 encryption on a password (warrior) for a username (xena):
Switch(config)# username xena secret 5 warrior
Switch(config)#
Related Commands
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
2-1104
username name secret {0 | 5} password
User ID of the user.
Specifies the authentication system for the user; valid values are 0 (text
immediately following is not encrypted) and 5 (text immediately following is
encrypted using an MD5-type encryption method).
Password of the user.
Modification
Support for this command was introduced on the Catalyst 4500 series switch.
Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
OL-27596 -01