Skip to content


Resetting forgotten root password on Centos/Red Hat

If you are desperate because you have forgotten root password, don’t be. This tutorial will show you how to reset root.

Boot the system and when you see the following screen, press any key

grub1.png

At the following screen, press e

grub2.png

It will take you the following screen

grub3.png

Highlight the line with vmlinuz in it by using the arrow keys and press e. The next screen will look like below

grub4.png

Now type single or init 1 at the very end of the line so.

grub5.png

Then press enter and b to boot the system with the new argument

The system will boot into single user mode and you will see bash prompt like below

grub6.png

Now change the password

 passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

type in the new password and then reboot

reboot

to restart the system.

 

 

Technorati Tags: grub, forgot root passord, reset root password

Share The Knowledge:
  • Print this article!
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • blogmarks
  • Diigo
  • E-mail this story to a friend!
  • LinkedIn
  • Live
  • Reddit
  • StumbleUpon
  • Twitter
  • Blogosphere News
  • Identi.ca
  • Slashdot
  • Technorati

Posted in Centos, Debian, Fedora, Red Hat, Ubuntu.

Tagged with , , , , , , .


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Tom says

    Worked like a charm on my Centos 5.x system on Asus Eee Box 202,
    HOWEVER after performing this, for some reason the mouse doesn’t work anymore!!!



Some HTML is OK

or, reply to this post via trackback.