Send comments to nx5000-docfeedback@cisco.com
6-145
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 6 Security Commands
username
username
To create and configure a user account, use the username command. To remove a user account, use the
no form of this command.
username user-id [expire date] [password password] [role role-name]
username user-id sshkey {key | filename filename}
no username user-id
Syntax Description
Command Default No expiration date, password, or SSH key.
Command Modes Configuration mode
Command History
Usage Guidelines The switch accepts only strong passwords. The characteristics of a strong password include the
following:
• At least eight characters long
• Does not contain many consecutive characters (such as “abcd”)
• Does not contain many repeating characters (such as “aaabbb”)
• Does not contain dictionary words
• Does not contain proper names
• Contains both uppercase and lowercase characters
• Contains numbers
Caution If you do not specify a password for the user account, the user might not be able to log in to the account.
user-id User identifier for the user account. The user-id argument is a case-sensitive,
alphanumeric character string with a maximum length of 28 characters.
expire date (Optional) Specifies the expire date for the user account. The format for the
date argument is YYYY-MM-DD.
password password (Optional) Specifies a password for the account. The default is no password.
role role-name (Optional) Specifies the role which the user is to be assigned to.
sshkey (Optional) Specifies an SSH key for the user account.
key SSH key string.
filename filename Specifies the name of a file that contains the SSH key string.
Release Modification
4.0(0)N1(1a) This command was introduced.