Resetting forgotten password in Ubuntu Linux
Do NOT do this if you have an encrypted partition, as you’ll lose access to all that data!! reference on forgotten password vis ecryptfs.
- Reboot
- at GRUB, choose Recovery Mode, then root.
- reset password
mount -o remount,rw /
passwd myusername