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