Matt Hawkins has worked out a way to reset a forgotten password on the Pi by editing a file on the boot partition of the SD card. So, all you need to do is to take the SD card, edit the file using your laptop or desktop PC and then put it back in the Pi. A few commands after booting the Pi and you’ll soon sort out your access problems. Find out how to reset your Pi’s password here.