Difference between revisions of "Shell/Change Your Password"

From Coder Merlin
(Created page with "== Change Your Password == When you first log on to the server you'll have been assigned a password. You should change this password to something that is easy for you to reme...")
 
m (Editorial review and minor corrections)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Change Your Password ==
When you first log on to the server, you'll have been assigned a password. You should change this password to something that is easy for you to remember but difficult for others to guess (or derive). (A good summary article of how to select strong passwords is at [https://www.fpainc.com/blog/password-guidelines-from-nist FPA].)
When you first log on to the server you'll have been assigned a password. You should change this password to something that is easy for you to remember but difficult for others to guess (or derive). (A good summary article of how to select strong passwords may be found [https://www.fpainc.com/blog/password-guidelines-from-nist here].)


The program that you'll use to change your password is '''passwd'''. It will prompt you three times.   
The program that you'll use to change your password is '''passwd'''. It prompts you three times.   
* You'll first enter your current password
* You'll first enter your current password.
* then the new password that you want to use
* Then enter the new password that you want to use.
* and then finally, to ensure that you're entering the new password correctly, you'll be prompted a second time for the new password.
* And then finally, to ensure that you're entering the new password correctly, you're prompted a second time for the new password.
{{Hint|
{{Hint|
Remember that when you enter the password, what you type '''will not be echoed to the terminal'''. You'll just need to pretend that the your keypresses are being received.
Remember that when you enter the password, what you type '''is not echoed to the terminal'''. You'll just need to pretend that your key presses are being received.
}}
}}


Line 18: Line 17:
passwd: password updated successfully
passwd: password updated successfully
}}
}}
{{MerlinMultipageExperienceNavBar}}

Latest revision as of 14:00, 22 February 2023

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

When you first log on to the server, you'll have been assigned a password. You should change this password to something that is easy for you to remember but difficult for others to guess (or derive). (A good summary article of how to select strong passwords is at FPA.)

The program that you'll use to change your password is passwd. It prompts you three times.

  • You'll first enter your current password.
  • Then enter the new password that you want to use.
  • And then finally, to ensure that you're entering the new password correctly, you're prompted a second time for the new password.
Hint.pngHelpful Hint

Remember that when you enter the password, what you type is not echoed to the terminal. You'll just need to pretend that your key presses are being received.

Change your default password to a strong password:

john-williams@codermerlin:~$ passwd

Changing password for john-williams.

(current) UNIX password:

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully