Technowine

The Search Ends Here

How to Break root password in redhat/linux?

Posted by admin On June - 28 - 2009

system-root-passwordRoot account in linux is the supreme account holding all the privildges to manage and configure  your system.

Sometimes non-root users wish to login into the root account but doesn’t have the password or in times some bad users change the root password which disables root-user to login ,hence he need to change the password for his account  and setup a new password

Here are the all steps to change/break  password for root in linux even if previous password is not known:

Step 1:)

When the first  grub screen like the below snapshot appears  press ‘e’ on linux line entry:

linux grub screen

Step2)

After preesing “e” in the previous step the snapshot similar to the below snapshot appears. Move to the line which contains the word ‘kernel’ and  press  ‘e’

kernel screen

Step3)

Go to end of that line and after rhgb quiet write  1 as in the snapshot below…this means that you are setting your kernel to boot into single user mode also known as the maintenance mode.

third screen

Step4)

Then press “enter ” and then  ‘b’ to boot the system into run level 1:
Step5)

Now wait for the prompt and  write the following command :
#passwd root

maintenance mode

Now the password for root account has been changed and try login with the new account:

Bookmark and Share

Related articles
How to set password for grub in linux

Connect to me on Facebook

Leave a Reply

Sponsors

About Me

Hello everyone, My name is Jaskiran Singh and I am currently pursuing B. Tech final year from Maharaja Agrasen Institute of technology.I am currently RHCT,RHCE,RHCSS certified.

Twitter

    Photos

    Activate the Flickrss plugin to see the image thumbnails!