lake
:: Statistics
  • Total Users: 39
  • Total Hits: 110,389,323
  • Total Visitors: 1,101,620,947
  • Total Photos: 159
  • Total Journal Entries: 15
  • Total Comments: 11
  • Members Online: 0
  • Guests Online: 5
:: Main Menu
:: Dream as if U Will live 4 Ever, live as if U will die today. .::Balram.Com.Np::.
:: Login Form
Recover Password
Account Sign-up
 Username
 
 Password
 

My Blog

Posted by: Balram Tiwari - 04/09/09 @ 10:38PM


Intro
The following steps were used to successfully reset the root password of a "Fedora 10" machine. In general, can be applied to any linux machine. 


GRUBWhile booting, after the initial splash and POST screen of the bios, the control transfers to GRUB. If there is just one linux operating system installed, the GRUB screen is bypassed to the booting screen, in that case just keep on pressing or tapping the ESC Button until you see the GRUB Menu.
Edit Choose the OS you want to boot into and press "e" to edit.
Edit Find the line that corresponds to kernel, and again press "e". Add the following line to the end of the line. 
single init=/bin/bash

Then press enter, and then "b" to boot the OS. After booting you will get a root shell.

Mounting the filesystem in readwrite mode: Type in the following command to remount the filesystem in read write mode.
mount -o remount,rw / 

Not doing this step might give the following error when running passwd, passwd: Authentication token lock busy.
passwd Next just use the passwd command, and give a new root password, Now that's simple. 

Reboot or init 5


Try this.

OR from the root shell, you can also edit the /etc/shadow file to remove the password.
OR copy the /etc/shadow /etc/passwd file and use John-The-Ripper software to try cracking the password.

Stuck?

Mail me


RSS 2.0
Powered by Balram.Com.Np. Copyright 2007-2010. All rights reserved.