PaulSpoerry.com

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

Replace Linux root password

PaulSpoerry | 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

Content

  • Popular Posts
  • Recent Posts
  • TagCloud
  • Comments

Popular Posts

  • Download Wordpress plugins
  • Guitar Hero: Metallica due by Q1 2009
  • IPod Touch with 9 inch screen coming in 2009
  • How to get an invite to what.cd
  • Be your own IT - Free Computer Repair Tools

Recent Posts

  • Windows 7 Beta Available as Free Download
  • Online ping test - JustPing
  • Windows 7 slaughters Vista and XP in performance
  • 7-Zip 4.64 Released
  • Google OS in 2010

Tag Cloud

ajax amazon apple barack obama bittorrent blog facebook firefox Gadgets Gmail google Google Chrome HTC Touch humor iGoogle internet explorer iphone JavaScript john mccain Linux mac os x menu search microsoft microsoft windows Mozilla Firefox open source operating system Politics Ron Paul Sprint Touch start menu united states user interface video Vista vista tweak Vista Tweaks web browser Windows Windows 7 Windows Mobile windows vista windows xp Wordpress youtube

Recent Comments

  • Windows 7 Beta Available as Free Download | PaulSpoerry.com on Download a copy of Windows 7 from Bittorrent
  • [BLOCKED BY STBV] guitar on Guitar Hero: Metallica due by Q1 2009
  • The Year Open Mobile OSses Mature - Not! | Playout Intelligence on Google OS in 2010
  • themaze on Paste Special As Unformatted text - must DIE
  • Whalecore on How to get an invite to what.cd

Google Search

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