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

by Stephen on August 28, 2008

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

Leave a Comment

Previous post:

Next post: