I had lost my password too.
I tried what Federico suggested.
- Burn the YunSerialTerminal onto the Yun
- Run the serial terminal (be sure to set the correct baud rate)
- Change the Line endings option on the serial monitor to ( New Line)
- Type "passwd" , enter your password twice.
- Rejoice