Tuesday, August 9, 2011

Recovering Root Password in Linux

Root: -root is the super user in Linux operating system During normal usage, a Linux OS runs under runlevels between 2 and 5 which corresponds to various multi-user modes. Booting Linux under runlevel 1 will allow one to enter into a specific mode, single user mode. Under such a level, you directly get a root prompt. From there, changing root password is a piece of cake .Following are the steps for recover root password on single user mode .
  1. reboot the computer and press esc.
  2. choose os and press e to edit  .
  3. choose  kernal/vmlinux-........EL ro root=LABEL=/ rhgb line and add 1 to go to single user mode 
  4. press b to boot in single user mode .
  5. then use passwd command as  in below to change root password
  6. reboot computer and login with new password .

for more details watch this video .




Thanks,
http://myownlab.blogspot.com/
myownlab2011@gmail.com

No comments:

Post a Comment