Question: How do I change password for my account and other user accounts on Ubuntu Linux OS?
Answer: On Ubuntu, you can change password from either GUI or command line as explained below.
1. Ubuntu Change Password from GUI
Launch Change Password Window by clicking on “System -> Preferences -> About Me”, which will display the following window. Click on ‘Change Password’ button in this window.
Enter Current Password: In the change password window, enter your current password and click on ‘Authenticate’.
Enter New Password: Once you enter the current password, the new password text field will be enabled. Enter your new password and click on ‘Change Password’.
2. Ubuntu Change Password from Command Line
Change your account password using the passwd command as shown below. Following example changes the password of the current logged-in user.
ramesh@ramesh-desktop:~$ passwd Changing password for ramesh. (current) UNIX password: Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
If you want to change password for another Ubuntu user, use the following method. Following example changes the password of user jsmith, from user ramesh.
ramesh@ramesh-desktop:~$ sudo passwd jsmith Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully
Comments on this entry are closed.
Thanks a lot buddy!!
You also can change root’s password by command line using $sudo passwd
first put your password then the new root password
thanks ramesh ,its so helpful for me
In the window where ” Enter Current Password: In the change password window, enter your current password and click on ‘Authenticate’.”
In case of changing the LAN password or sync with LDAP
Even if you enter anything in the current password field that still authenticates…
But the new password is not updated…
If you have forgotten the root password and you want to reset it. You can do it from “Recovery Mode”. This option appears on the time of boot, after selecting recovery mode. After you select recovery mode and wait for all the boot-up processes to finish, you’ll be presented with a few options. Press arrow key down to select “Drop to root shell prompt”
Once you’re at the root shell prompt, if you have forgotten your username as well, type
=> You should then see a list of the users on your Ubuntu installation. In this case, I’m going to reset Shahnawaz Uqaili’s password.
=> You’ll then be prompted for a new password, then retype new password.
=> Now the password should be reset. Type
After you get back to the recovery menu, select resume normal boot, and use Ubuntu as you normally would—only this time, you actually know the password!
Hi – I am using 2 dual boot Ubuntu / Windows machines and to simplify the log on process for my young kids, I have a very short password.
I would like to do this on my HTPC too, again Ubuntu, so simplify logging in .
If I use any of the above methods, it states my password is too short. Is there a way around this.
I have also tried setting auto log on however it will not work?
how do I set a password for my login.I already have a password for my account, but it does not ask for the password when the system starts.It directly logs in.Please help.Thank you!
i can’t the password.why?
if you dont have de user (and root) password you need do chroot process with A Ubuntu live CD (or other linux live).
there is a explain (in portugues) how you can do this
This is very helpfull.
Thank you. very useful.
Thanks a lot buddy..
It worked. Thanks…
Thanks buddy , Good one it worked well !!!
Brother, many many thanks. May you long live
Thanks very much for your time.
I cannot change our password by clicking on to our old password and then authenicate. I am currently using Ubuntu Linex.
How is this done.?
Thanks. A simple and effective post.
I had put my password into a dodgy dialogue in Ubuntu, so to be safe changed it using the command line.
I am using latest Ubuntu. I cannot find “System”. Instead went to System Settings , Users, selected User and clicked on password.
There are too many flavors of Ubuntu out there.
When I go to recovery mode and drop out to root she’ll prompt it prompts me for a root password. I don’t remember the root password or the used password. How can I reset? Oh why couldn’t they put a forgot password option in the GUI for the user or the root account :0(
Thanks! On Ubuntu 13.10 I can’t find where in the system I could change the password, but the “terminal” way always works great, so I changed it via terminal:)))
if i forgot the password root but i remember the password user can i reset password by simple user?
very clear explained.