change-passwd (user and privi exec modes)

Changes the password of a logged user. When this command is executed without any parameters, the password can be changed interactively.

Note

Note

This command and its syntax is common to both the User Executable and Privilege Executable configuration modes.

Supported in the following platforms:

Syntax

change-passwd {<OLD-PASSWORD>} <NEW-PASSWORD>

Parameters

change passwd {<OLD-PASSWORD>} <NEW-PASSWORD>
<OLD-PASSWORD> Optional. Specify the existing password.
Note: Password must be from 1 - 64 characters.
<NEW-PASSWORD> Specify the new password.
Note: The password can also be changed interactively. To do so, press [Enter] after the command.

Examples

nx9500-6C8809#change-passwd
Enter old password:
Enter new password:
Password for user 'admin' changed successfully
Please write this password change to memory(write memory) to be persistent.
nx9500-6C8809#write memory
OK
nx9500-6C8809#