I lost the password for root on a ubuntu virtual machine. Is there any way to restore it or I need to install a new virtual machine with ubuntu again?

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

You can change your root password by running sudo passwd root

link|improve this answer
ohhh great!!! I was desperated for an hour :-s thanks bro!!! – Hoang Pham Mar 20 '10 at 18:10
feedback

Ubuntu doesn't have a password for the root account, unless you explicitly enable it after installing. Sudo will ask for your current account's password, by default.

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.