1. You are a regular user, then change the password with: passwd, it will make you first enter your old password, then enter the new password twice.
2. You are root, then use: password username, you can modify username password, and directly enter the new password twice on it, do not enter your old password.