Passwords (lesson)

From regional-training
Revision as of 11:03, 24 August 2022 by Ralph (talk | contribs) (Ralph moved page Lesson:passwords to Passwords (lesson))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

prequisites

  • start with a Linux image where the student has access to a command shell
  • set the student up with sudo before changing the root password
  • test that sudo works

Do not change your own password until you know or have changed the root password. It might also be good practice to do the lesson:backup sdcard so you may revert to a working image in case the password access is lost.

aim

This lesson will show how to change the root passwd, and your own password.

  • start a command shell and then become the root user via
sudo su -
  • change your user passwd via root
passwd <userid>
  • answer the prompts.
  • Test that you can login as that user via ssh.
ssh user@localhost

Enter your password and see if you obtain a new shell.

If that doesn't work try resetting your password.

You may also set your password from your own shell by typing

passwd

categories