Retrieving lost passwords

Usernames are kept in /etc/passwd and encoded passwords in /etc/shadow. Use live CD and Ctrl+Alt+F2

>sudo chroot /media/xxx/
#passwd
#passwd username
#useradd username
#passwd username

Leave a Reply

Your email address will not be published. Required fields are marked *