password

Last Updated : Nov 09, 2021 |

Use the password command to change your password. If a password expiration policy is being implemented, then starting from 10 days before password expiration, a warning appears every time you log on, informing you that your password will expire in n days.

The new password you enter must match the password policies determined by login authentication min-password-length, login authentication min-password-upper-chars, login authentication min-password-lower-chars, login authentication min-password-digit-chars, and login authentication min-password-special-chars. Ensure that the password does not contain the username.

For the new password to take effect, run the copy running-config startup-config command.

Note:

This command applies only to local user accounts. It does not apply to a Services account or a remote Radius account.

Syntax

password

User Level

read-write

Context

general

Example

To change your user password:

Gxxx-001(super)# password 
  Enter new password: xxxxxxx
  Confirm new password:  xxxxxxx
Password was changed; please commit changes to have the change permanent.