Refer to the documentation on how to use the Password Change tool- chpassword