Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Feb 8 '12 at 18:57

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

2  
May be alz.org/alzheimers_disease_treatments.asp... Just kidding! –  vines Feb 8 '12 at 9:21
add comment

1 Answer 1

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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