Showing posts with label change user password. Show all posts
Showing posts with label change user password. Show all posts

Thursday, October 20, 2016

Change the Password of Any Linux User from the Terminal on Linux

If you're a system administrator and you want to change the password of a user of your Linux system, follow this tutorial.

Let's say I have a user 'linda' on my system. I want to change the password of linda. I would run the following command,

sudo passwd linda
Changing password for shovon.
(current) UNIX password:

Enter your current accounts password and press <Enter>. Then you will see the following prompt:

Enter new UNIX password: 

Enter the password that you want 'linda' to have and press <Enter>, Then you will see the following prompt:

Retype new UNIX password: 

Retype the new password for 'linda' and press <Enter>. You will see the following line.

passwd: password updated successfully 


Congrats! You have successfully changed the password of 'linda' from Linux terminal.

Change Your Password on Linux

If you want to change your password from the terminal on Linux, follow this tutorial.

To change your password on linux, run the following command

passwd
Changing password for shovon.
(current) UNIX password:

Enter your current accounts password and press <Enter>. Then you will see the following prompt:

Enter new UNIX password: 

Enter the password that you want your account to have and press <Enter>, Then you will see the following prompt:

Retype new UNIX password: 

Retype your new password and press <Enter>. You will see the following line.

passwd: password updated successfully 


Congrats! You have successfully changed your password from Linux terminal.