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
Linux provides several powerful administrative tools and utilities which will help you to manage your systems effectively. If you don’t know what these tools are and how to use them, you could be spending lot of time trying to perform even the basic administrative tasks. The focus of this course is to help you understand system administration tools, which will help you to become an effective Linux system administrator.Get the Linux Sysadmin Course Now!
If you enjoyed this article, you might also like..
|
|
|
|






My name is Ramesh Natarajan. I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web. My focus is to write articles that will either teach you or help you resolve a problem. Read more about
{ 15 comments… read them below or add one }
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
hi,
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…
Any suggestions?
Karan
Hello,
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
ls /home
=> 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.
passwd shahnawaz
=> You’ll then be prompted for a new password, then retype new password.
=> Now the password should be reset. Type
exit
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!
Thanks
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?
Thanks
Hey!
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
http://www.delete.com.br/recuperar-senha-root/
This is very helpfull.
Thank you.
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