Here we provide, technology updates, sports updates, defense updates and educational blogs, HISTORY, Linux Tutorials, Python Tutorial
- Home
- About us
- Contact us
- Sitemap
- Disclaimer
- Privacy Policy
- Terms and Condition
-
Settings
- Dark mode
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 the 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
Post a Comment
Post a Comment
if you have any doubts, please let me know