Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 3 down vote accepted

You can change your root password by running sudo passwd root

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

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .