Softwarehowtos

How to reset root password in fedora?



2009-06-07
By Ryan

If you forget your root password, you can follow this guide to reset root password in fedora. You will find it's easy to solve that issue.


For_Immediate_Release:

Do you always get confused, when you try to login to fedora? You forgot your root password, and you are eager to reset root password. Don't be too dispirited, this article will show you a guide on how to reset root password in fedora.



Now before we start this guide, you should know how to change runlevels, because we will root in runlevel 1 for this purpose. In addition, you'd better to run a standard fedora installation with grub.



Step by step guide: How to reset root password in fedora



Step1 Reboot computer





Step2 Reach in the Kernel selection menu.

When the grub options appear, you can choose the multiple kernels. Then you should press Escape key, you will reach in the kernel selection menu.





Step3 Select the appropriate kernel you want to boot in and press 'a' (without quotes).

After selecting the kernel, you will have a prompt as shown below:

grub append> ro root=LABEL=/ rhgb quiet

How to reset root password in fedora





Step4 Add '1' to that line.

So the whole prompt line would look something like:

grub append> ro root=LABEL=/ rhgb quiet 1





Step5 Reboot computer

Once booted up, you will get a prompt like:

sh-3.2#





Step6 Change your password

Enter passwd here. passwd is the command used to change the password for a user.

# passwd



Note: The system will ask you for your new password, enter it twice and you are done.





Step7 Reboot computer normally.





Although this tutorial is written for fedora 8, this also work with other releases. You can try to reset root password by this way, if you still have some trouble with this thing, you can post a comment on this article.

####

For more information:
Keywords: reset root password, root password, set root password


Source: http://www.softwarehowtos.com/