Search

forgot your root password? PDF Print E-mail
User Rating: / 3
PoorBest 
How to ? - Linux
Wednesday, 08 July 2009 17:03

If you forgot your root password . Here there is a procedure which describes how to reset your root password. It seems to work in my machine installed with ubuntu and dont know how it works with other distros. You must backup your data before using it. We are not responsible for any loss of data or anything by following this procedure.

 

While booting you will get the bootloader screen as shown below.

 

Select the linux of which the password is to be reset. Press the key 'e' to edit the menu and select the second entry starting with kernel. You will get as shown below
 

 

Again press the key 'e' to edit the line. Go to the end of line. There you will find a word 'ro'. Replace it with 'rw' without quotes and at the end add the following 'init=/bin/bash' without quotes.

Now press enter to get the second screen. Press 'b' and your machine will start booting. At last you will get a prompt. Here you can change your root password by typing at the terminal

 

passwd

 

It will ask you to enter the new password and retype it again. Now your new password is set. Next time you can use the new password for the root.

This procedure is supposed to work with other distros with the grub as bootloader.
 



Add this page to your favorite Social Bookmarking websites
 
Last Updated on Thursday, 09 July 2009 16:30
 

Add comment


Security code
Refresh

We have 71 guests online