Home > Uncategorized > How to reset root/single_user password in Ubuntu on a Virtual Machine

How to reset root/single_user password in Ubuntu on a Virtual Machine

In order to access the grub menu on a virtual machine, you need to hold the shift key down for a while. You must let your virtual machine to capture your mouse before holding the shift key. Follow the steps to change your password:

1. Let your virtual Machine to capture your mouse.
2. Hold the shift key down to get the grub menu.
3. Select the recovery mode option.
4. Select drop to root shell prompt.
5. Now, change with # passwd [username] (You can also see the list of users using # nano /etc/passwd).

Categories: Uncategorized
  1. February 8, 2013 at 12:46 pm

    Thanks for the instructions. It helped, although I had to go the extra mile and mount the file system as read-write right before changing the password:

    mount -rw -o remount /

    Without that, I got the errors:
    passwd: Authentication token manipulation error
    passwd: password unchanged

    The solution to this problem was posted here: http://askubuntu.com/questions/91188/authentication-token-manipulation-error

  2. August 31, 2013 at 5:02 am

    I am online online over Three hours these days, yet I never uncovered any kind of exciting content just like you. It really is beautiful value enough for me. I think, in the event that virtually all world wide web managers plus writers designed just right articles when you does, online will be a lot more very helpful than previously.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: