These instructions apply not just to a Raspberry Pi, but many Linux distributions.  If you forgot the password to your Pi, worry not, it’s possible to reset it without re-installing.

  1. Take the SD card out of your Pi and plug it into another computer with an SD card reader.

  2. Open the SDCARD/etc/shadow file on your Raspberry Pi

  3. Look down the list for your user name.  It should look like this.

  4. Delete everything between the first and second colon (:)

  5. Save the shadow file.

  6. You just blanked out your password.  Plug the SD card back into your Pi and boot up.

  7. You should now be able to sign in using a blank password.