Passwords (lesson)

From regional-training

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