0% found this document useful (0 votes)
39 views1 page

9 Change+Password+in+Linux

To change passwords in Linux, use the passwd command from the terminal. The passwd command prompts the user to enter a new password twice without displaying the characters to avoid others seeing the password. It then updates and stores the encrypted password in the /etc/shadow file. Users can change their own password or the password of other users by running passwd as the root user and specifying the username.

Uploaded by

Nour Allah tabib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

9 Change+Password+in+Linux

To change passwords in Linux, use the passwd command from the terminal. The passwd command prompts the user to enter a new password twice without displaying the characters to avoid others seeing the password. It then updates and stores the encrypted password in the /etc/shadow file. Users can change their own password or the password of other users by running passwd as the root user and specifying the username.

Uploaded by

Nour Allah tabib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Change Password in LINUX

How do I change the password in LINUX?

To modify a user's password or your own password in LINUX use the passwd command. Open the
terminal and then type the passwd command entering the new password, the characters entered do not
display on screen, in order to avoid the password being seen by a passer-by. The passwd command
prompts for the new password twice in order to detect any typing errors. The encrypted password is
stored in /etc/shadow file.

Change Any Users Password


Login as the root user and type the command:
# passwd userName
# passwd vivek
# passwd tom

Sample outputs:
Enter new LINUX password:
Retype new LINUX password:
passwd: password updated successfully

Change Your Own Password


Simply type the passwd command:
$ passwd

Sample outputs:
(current) LINUX password:
Enter new LINUX password:
Retype new LINUX password:
passwd: password updated successfully

You might also like