How to change user passwords on Ubuntu Linux

Want to change root password in Ubuntu? Learn how to change the password for any user in Ubuntu Linux. Terminal methods have been discussed. When do you need to change the password in Ubuntu?

In this quick tutorial, I’ll show you the command line  ways of changing passwords in Ubuntu.

change-password-ubuntu-linux

Previously we have discussed the basic terminal commands on How to Copy Files using Terminal, now I want to continue with other tutorials. If you are new to Ubuntu, maybe you have a little trouble how to change the user’s password on Ubuntu Ubuntu. Because the command must be entered in the terminal to do it. Password change can be due to security problems, of course it will be easier to change the password in Windows than Ubuntu.

Change user password in Ubuntu

Changing the password is one of the commands from the terminal. Maybe there are difficulties because you are still unfamiliar with ubuntu, you can follow the steps as follows.

  1. Open a terminal by clicking Home → type terminal → select terminal or also by pressing Ctrl + Alt + T.
  2. Then enter the command “sudo passwd” without quotes, then enter.
  3. Type the password that you are using, this is invisible (not visible) then enter.
  4. Then enter the new password (invisible) → enter.
  5. Type the new password again → enter.
  6. If there is already a statement “password updated successfully” means the user’s password has been successfully changed.
passwd
Changing password for abhishek.
(current) UNIX password: 
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

change-user-password-ubuntu

If you want to change password for some other user, you can do that as well with the passwd command. But in this case, you’ll have to use sudo.

sudo passwd <user_name>

Isn’t it easy to change the user’s password on Linux Ubuntu? Only a few steps by entering commands into the terminal password can be changed. Okay, the last time I will discuss how to increase the number of users on Linux Ubuntu. continue to follow the tutorial, good luck and keep coding! ^^

read also : How to Check Ubuntu Version using Terminal

----------

Tulisan Terkait