You can change a user password in Ubuntu Linux by using the passwd
command.
To change the password of the current user, simply run the following command in a terminal:
passwd
To change the password of another user, you need to have root privileges. You can use the sudo
command to run the passwd
command as root:
sudo passwd username
Replace username
with the name of the user whose password you want to change. You will be prompted to enter and confirm the new password for the user.