I just installed Linux on a virtual machine. During the installation, I setup account and password but later when I try to log in (after installation completes), I forget the password thinking I am having Alzhiemer [?]. really worried, someone could help me please ? Because now I can only log on with a guess account. Thank you so much.

link|improve this question
2  
May be alz.org/alzheimers_disease_treatments.asp... Just kidding! – vines Feb 8 at 9:21
feedback

migrated from stackoverflow.com Feb 8 at 18:57

This question came from our site for professional and enthusiast programmers.

1 Answer

The usual procedure for this is to boot into single-user mode. From there you can reset the password. The procedure for entering single-user mode will depend on which boot loader you use - GRUB or LILO.

For GRUB: Reboot the VM, highlight the line for Linux at the selection prompt, and press e.

For LILO: Reboot the VM. At the LILO: prompt, type in linux single and press Enter. (You might still be prompted for a password - if so, try linux init=/bin/bash instead.)

You can also reset the password by booting from a cd, but that's a bit more involved. I'd try the single-user mode route first.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.