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 have Ubuntu guest OS installed on Virtual Box on windows. But I have forgotten all passwords for user and root accounts. But when I try to get into grub by pressing escape at startup, nothing happens. How do I get into grub loader to change the password? Acually no grub menu is shown when it starts. Is there any other way to reset all the passwords?

share|improve this question

You could mount the Ubuntu install ISO image as a CD, boot from CD and go into rescue mode to change all of the passwords, if you wanted.

To attach the ISO image to VirtualBox, go to Settings --> Storage and look for either the CD icon, or click on the CD icon with a plus on it. Step Onet If the ISO image you want isn't there, add it using the Virtual Media Manager. Step Two

Press F12 at boot to look at all of the VirtualBox boot options, and go from there.

share|improve this answer

Piece of cake. Just boot with the cd you installed from. Fire up a text editor and modify the line of /etc/shadow on your root partition for the user root (or your own user) to read:


jaroslav is your username, mynotsosecretpassword is your new password. Leave everything else as it is.

share|improve this answer
It expects a hashed password not clear text, so putting the password in the field won't work, you need to leave the field empty and then you can log in without a password. I.e.: jaroslav::9797:0::::: – Von Jul 31 '12 at 19:52

You must log in to answer this question.

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