You are on page 1of 1

To change your

password in Linux, all you need to do is run the P-A-S-S-W-D, or


password command. Let's try changing my password. When you set a password, it's
securely scrambled
then stored in a special privileged
file called /etc/shadow. This file can only be read by route to keep away prying
eyes. Even if you did have access, you wouldn't be
able to descramble passwords found in here. If you're managing a
computer and you want to force a standard user to
change their password, like we did in Windows,
you can use the -E or expire flag with
password like this. This will immediately
expire a user's password and then make them
set a new password the next time they login.

You might also like