How do I reset a forgotten server root password under Linux?

Posted on the August 28th, 2008 under Server Admin Tips by Stephen

If you forgot your server root password, don’t panic, follow these easy instructions to reset it.

  1. Reboot the server => when you are at the kernel selection prompt, highlight the kernel and press ‘e’
     
  2. On the next screen, you should see an entry begins with ‘kernel’, highlight it and press ‘e’ again
     
  3. It would now allow you to edit the line => append ‘ single’ to the end of the line (without quote). This means you make a space then type in the word single
     
  4. Hit ‘Enter’ => then press ‘b’ to boot
     
  5. Once the server finishes booting, type ‘passwd’ and enter a new password
     
  6. Type ‘reboot’ to reboot the server
     

Done :D


Share this page:
  • Facebook
  • Twitter
  • StumbleUpon
  • Slashdot
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Live
  • MySpace
  • Technorati
  • LinkedIn
  • Reddit
Related Posts:
  1. How To Reset Your Ubuntu Password
  2. Tutorial 2: Obtaining a Free Shell Account
  3. How to change server main or primary IP address?
  4. How to Easily Upgrade Grub Legacy to Grub 2
  5. Tips to create a strong password

Leave a Comment