TrackSomebody.com

october27thgroup.com pentesting, pci, red team

illmob.org

Recover lost Ubuntu password

September 6th, 2008 by admin in Linux, News, Password Info

Losing your root password isn’t the end of the world, though. You’ll just need to reboot into single user mode to reset it. Here’s how to do it on a typical Ubuntu machine with the GRUB bootloader:

Boot Linux into single-user mode

  1. Reboot the machine.
  2. Press the ESC key while GRUB is loading to enter the menu.
  3. If there is a ‘recovery mode’ option, select it and press ‘b’ to boot into single user mode.
  4. Otherwise, the default boot configuration should be selected. Press ‘e’ to edit it.
  5. Highlight the line that begins with ‘kernel’. Press ‘e’ again to edit this line.
  6. At the end of the line, add an additional parameter: ‘single’. Hit return to make the change and press ‘b’ to boot.

Change the admin password
The system should load into single user mode and you’ll be left at the command line automatically logged in as root. Type ‘passwd’ to change the root password or ‘passwd someuser’ to change the password for your “someuser” admin account.

Reboot
Once your done, press ctrl-alt-del, or type ‘reboot’ to restart into your machine.

One Response to ' Recover lost Ubuntu password '

Subscribe to comments with RSS or TrackBack to ' Recover lost Ubuntu password '.


  1. on April 23rd, 2011 at 1:45 am

    I’d need to verify with you here. Which isn’t one thing I usually do! I take pleasure in reading a publish that may make individuals think. Additionally, thanks for permitting me to comment!

Leave a reply