How To Change Password On Ubuntu

by Ramesh Natarajan on December 25, 2009

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.

Ubuntu Change Password - About Me Window

Enter Current Password: In the change password window, enter your current password and click on ‘Authenticate’.

Ubuntu Change Password - Enter Current Password

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’.

Ubuntu Change Password - Enter New 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
Download Free eBook - Linux 101 Hacks

Get free Unix tutorials, tips and tricks straight to your email in-box.

If you enjoyed this article, you might also like..

  1. Ubuntu Tips: How To Enable Root User ( Super User ) in Ubuntu
  2. Ubuntu Tips: How to Login Without Entering Username and Password
  3. How To Change MySQL Root Password
  4. 7 Examples to Manage Linux Password Expiration and Aging Using chage
  5. Ubuntu Tips: How To Change Date and Time on Laptop or Desktop
  

Vim 101 Hacks Book

{ 1 comment… read it below or add one }

1 Damodar May 5, 2010 at 5:00 pm

Thanks a lot buddy!!

Leave a Comment

Previous post:

Next post: