How to Reset a Forgotten Raspberry Pi Password - Raspberry Pi Spy
This tutorial explains how to reset a forgotten Raspberry Pi password. You will need physical access to the Pi, the ability to connect it to a monitor and keyboard and another PC to edit a file on the SD card. It's easier to not forget the password but this guide gives you a chance to rescue your system.