Friday, December 24, 2010

Reset root password on Rad Hat Enterrpise 5

  1. Insert install CD #1 into the CD drive, then reboot system.
  2. At boot: prompt, enter linux rescue, then wait until Choose a Language screen shows up.
  3. Select the language, press tab to highlight OK, then press enter.
  4. Select the keyboard type, press tab to highlight OK, then press enter.
  5. Select Yes or No for Setup Networkign screen, then press enter. Press enter again for Continue.
  6. Press enter at Your system has been mounted under /mnt/sysimage screen.
  7. At command prompt sh-3.2#, type in chroot /mnt/sysimage, then passwd to reset the root pass word.
  8. Enter the the same password twice at New UNIX password and Retype new UNIX password prompts.
  9. Type reboot at the command prompt to restart the server.