Reseting passwords

Here is a short guide to resetting the admin password (Debian OS root user password). I’m writing this up because it has come up on the UR Discord several times now. This would be common knowledge to anyone running small Linux homelab servers. Essentially this is a guide to manually put the correct hash for ‘easybot’ into the linux shadow file that is referenced for user authentication.

For the curious
Understanding /etc/shadow file

Note: Do not attempt this if any part of the guide makes you uncomfortable

You will need one of the following:

Accessing the SD card

  1. Power down robot
  2. Remove SD card
  3. Plug into computer via SD card reader or slot

Manually replacing the hash for easybot

  1. Navigate to /etc/
  2. make a backup of the shadow text file
  3. Replace the line that starts with root: with the following hash for easybot:

root:$6$3vL7GCHX$P8zdkoSdHi1p7eUffcjLO817K.vWNndUVDBjQTw/ovkeDPcng3rJnp9GwDKOlraQBzzamFpzRKpnj8ix9pStT/:19920:0:99999:7:::

Testing

  1. Safely dismount or eject the SD card
  2. Insert into robot
  3. Power on and try to log into a terminal using the easybot root password