If you have a live media, you could edit /etc/shadow which contains the passwords and blank the correct field.

1. boot a live media
2. mount your root partition
3. edit /etc/shadow
4. blank the correct field (=password for your user)
5. reboot into installed OS
6. use the passwd command to set a new password

To figure out the right field read the shadow manual page

man shadow

Reply via email to