Linux

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.

test@test-desktop:~$ passwd
Changing password for test.
(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 ‘user2’, from user ‘test’.

test@test-desktop:~$ sudo passwd user2
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Share Button

Comments are closed.

ALl Rights Reserved @Nawras Tech2017
All Rights Reserved 2017 NawrasTech