I run Ubuntu in a virtual machine and I've managed to reset my password in recovery mode, by editing the parameters according to these instructions on Superuser.com. Summarizing my steps:
ro single at the end of the line beginning with
rw init=/bin/bash, while booting, then using the command
passwd <username>, entered the new password twice. The password is reported to be updated successfully.
However, when I try to reboot the system nothing happens. I tried the command
reboot, but it does not work. If I type
exit I get kernel panic.
Any tips on how to proceed?