To change a user's password in Ubuntu, you can use the
passwd command. Here's how:
sudo passwd username
username with the name of the user whose password you want to change. You will be prompted to enter the password for the
sudo user (usually this is the password you use to log in to your system).
Note: If you are changing your own password, you can omit the
sudo and simply type
passwd at the terminal prompt.
I hope this helps! Let me know if you have any questions.