pw user change_passwd
The pw user change_passwd command changes the password of an existing user.
The syntax for this command is as follows:
pw user change_passwd <user_name> -old <old password> -new <new password>
- <user_name> — A string representing a user name. A user with this name must already exist.
- -old — Old password of the user.
- -new — A new password.
To change the password of user1 from netpro to ask2pro, run the following command:
# pw user change_passwd user1 -old netpro -new ask2pro
The pw user change_passwd command can be run by the following users:
- The root user on UNIX or Linux or the Administrator user or users belonging to the Administrators group on Windows.
- BMC ProactiveNet user with administrative privileges. For more information, see Users with administrative privileges.
- BMC ProactiveNet user without administrative privileges. For more information, see Users without administrative privileges.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*