Want to change
When do you need to change the password in Ubuntu? Let me give you a couple of scenarios.
When you install Ubuntu, you create a user and set a password for it. It could be a weak password or perhaps a bit too complicated and you want to
If you are a sysadmin, you may need to change the password for other users on your system.
You may have a few other reasons for doing this. Now the question comes, how to change the password for a user in Ubuntu or Linux?
In this quick tutorial, I’ll show you the command line and the GUI ways of changing passwords in Ubuntu.
Change user password in Ubuntu [Command Line]

Changing user password in Ubuntu is dead simple. In fact, it’s the same with any Linux distribution because you use the generic Linux command called passwd for this purpose.
If you want to change your current password, simply run this command in a terminal:
passwd
You’ll be asked to enter your current password and the new password twice.
You won’t see anything on the screen while typing the password. This is perfectly normal behavior for UNIX and Linux.
passwd
Changing password for abhishek.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Since this is your admin account, you just changed the sudo password in Ubuntu without even realizing it.

If you want to change
sudo passwd <user_name>
If you changed your password and forgot it later, don’t worry. You can easily reset Ubuntu password.
Change root password in Ubuntu
By default, the root user in Ubuntu doesn’t have a password. Don’t be surprised. You don’t use the root user in Ubuntu all the time. Confused? Let me explain it to you quickly.
While installing Ubuntu, you are forced to create a user. This user has admin access. This admin user can gain root access using the sudo command. But it uses its own password, not the root account’s password (because there is none).
You can set or change root password using the passwd command. However, in most cases, you don’t need it and you shouldn’t be doing it.
You’ll have to use sudo (with an account with admin privileges). If the root password has no password set up previously, it will ask you to set it up. Else, you can change it using the existing root password.
sudo passwd root
Change Ubuntu password using GUI
I have used GNOME desktop with Ubuntu 18.04 here. The steps should be more or less the same for other desktop environments and Ubuntu versions.
Go to Menu (press Windows/Super key) and search for Settings.
In the Settings, scroll down a bit and go to Details.

In here, click on Users to access all the available users on your system.

You can select any user you want, including your main admin account. You need to unlock the users first and then click the password field.

You’ll be asked to set the password. If you are changing your own password, you’ll have to enter your current password as well.

Once done, click on the Change button on the top. That’s it. You have successfully changed user password in Ubuntu.
I hope this quick little tip helped you to change user password in Ubuntu. If you have questions or suggestions, please leave a comment below.
I have been having crazy issues. My ubuntu 20.04 computer changed my password on me. I added a root password and then changed the user password, but the keyring password was not what I set and I couldn’t change it. Now I can’t even sign in. Anyone know a way to change these passwords without access to ubuntu?
You are mixing too several things.
“My ubuntu 20.04 computer changed my password on me”
No operating system would do that on its own.
” added a root password and then changed the user password, but the keyring password was not what I set and I couldn’t change it. Now I can’t even sign in.”
You cannot log in to you system, again? It has nothing to do with keyring password then.
Since you had set the root password, you should be able to use that and reset it again by going to recovery and accessing root shell.
“dead simple”? Umm, no. Not at all. It may be “dead simple” to anyone who is knowledgeable and overly supportive of all things Linux, but Windows and Apple and almost every other OS I’ve used the last 35 years including DOS 2.11 are much simpler.
At any rate, thanks for the post – because of you I now know how to change my password!! That said, I’ve yet to try it :/
Thanks for sharing your views, Jason.
I followed your simple instructions for changing my password using the command line exactly, but the terminal told me there was an Authentication token manipulation error and the password remained unchanged. What went wrong?
This could mean that the old password you entered was not correct or the new passwords that was entered twice did not match.
The old password is at the top of the terminal. It is [email protected] I could not have made a mistake typing it in, I tried it several times.
Can this be changed from command line?
The first method is for command line only.
I can not get into Ubuntu
Under user
Not listed
What should I do