354
Cisco Nexus 5500 Series NX-OS Security Command Reference
OL-27883-02
Chapter       U 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 {0 | 5} password] [role role-name] [priv-lvl level]
username user-id sshkey {key | filename filename}
no username user-id
Syntax Description 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.
Note The Cisco NX-OS software does not allowed the “#” and “@” 
characters in the user-id argument text string.
expire date (Optional) Specifies the expire date for the user account. The format for the 
date argument is YYYY-MM-DD.
password (Optional) Specifies a password for the account. The default is no password.
0 Specifies that the password that follows should be in clear text. This is the 
default mode.
5 Specifies that the password that follows should be encrypted.
password Password for the user (clear text). The password can be a maximum of 64 
characters.
Note Clear text passwords cannot contain dollar signs ($) or spaces 
anywhere in the password. Also, they cannot include these special 
characters at the beginning of the password: quotation marks (“ or ‘), 
vertical bars (|), or right angle brackets (>).
role role-name (Optional) Specifies the role which the user is to be assigned to. Valid values 
are as follows:
• default-role—User role
• network-admin—System configured role
• network-operator—System configured role
• priv-0—Privilege role
• priv-1—Privilege role
• priv-2—Privilege role
• priv-3—Privilege role
• priv-4—Privilege role
• priv-5—Privilege role
• priv-6—Privilege role
• priv-7—Privilege role
• priv-8—Privilege role
• priv-9—Privilege role