How To Change User Password In Ubuntu

In Ubuntu, you can change your current user password and other user password using the passwd command. In the Linux system, the passwd command is used to set and modify a user’s password.

How to Change User Password With passwd Command in Ubuntu

Now open the terminal software using ctrl+alt+t keys and run below command.

passwd

Now type the password of the current user, and press the Enter key.

Now enter the new password you like to change and press Enter. Again one time enter the new password and press enter. Try to set strong lengthy password with small, upper,special,number and alpha.

Changing password for user manikandan.
Current password:
New password:
Retype new password:
passwd: all authentication tokens updated successfully.

You can also change other user password by using the sudo like below. In the terminal run below command.

sudo passwd avanthika

Note: Just replace “avanthika” with the username of the user and note the user should be either root or a member of the sudo group.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Also Read:  HyperRogue Puzzle Rogue Like Game

Leave a Reply