change-password
Usage: change-password --password <new password> [--validate-only]This command allows users to update their current login password. Additionally, it provides an option to validate a new password before applying the changes.
Option | Description |
|---|---|
[-p, --password <new password>] | This is the mandatory option. You must specify the new password with this option. |
[-vo, --validate-only] | Validates the new password without actually applying the change. |
Examples - Using the change-password command
Changing the user password:
mzsh <username>/<password> change-password --password MyNewPass@or
mzsh <username>/<password> change-password -p MyNewPass@Validating the new password without applying changes:
mzsh <username>/<password> change-password --password MyNewPass@ --validate-onlyor
mzsh <username>/<password> change-password -p MyNewPass@ -voReturn Codes
Listed below are the different return codes for the configuration command:
Code | Description |
|---|---|
0 | Will be returned if the command executed successfully. |
1 | Will be returned if the password change failed. |
10 | Will be returned if the password validation failed. |