Question: How do I reset a user’s password under any Linux distribution from command prompt?
Answer: To reset a user’s password, use passwd command. You have to change it to a different password.
Login as the root user
Open terminal or shell prompt
Type the following command:
# passwd username
For example, reset a tom’s password, enter:
# passwd john
Type a password [...]