PaulSpoerry.com

You found me… insights on technology, philosophy, Windows, hacking and more.
  • rss
  • Home
  • Archive
  • Links
  • Contact
  • Categories
  • Search
  • Snazzy Archives
  • About
  • Photos

Replace Linux root password

September 6, 2008

Ubuntu logoImage via Wikipedia

I never realized the it was even easier to replace a lost (or to hack a machine given you have physical access) a Linux machine. Jason Striegel posted this example over at Hackszine.com on how to reset a lost Ubuntu password. It’s surprisingly simple to reset, simply follow the steps outlined below. 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

That’s it, just reboot into your normal configuration with the new root password.

 Replace Linux root password
Comments
No Comments »
Categories
Hacking, Linux, Privacy, Tech
Tags
admin account, Booting, Command line interface, GNU GRUB, hack linux, Hacking, Linux, Linux kernel, operating system, restore password, root password, Single user mode, ubuntu
Comments rss Comments rss
Trackback Trackback

Google Search

Google Friend Connect

Tag Cloud

ajax amazon barack obama bittorrent blog facebook firefox gadget Gadgets game Gmail google Google Chrome HTC Touch humor iGoogle john mccain launch Linux menu search microsoft microsoft windows Mozilla Firefox open source operating system Politics Religion Ron Paul Sprint Touch start menu tabs target united states user interface video Vista vista tweak Vista Tweaks wikipedia Windows Windows Mobile windows vista windows xp Wordpress youtube

Onlywire

rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox