Results 1 to 5 of 5

Thread: Root password recovery

Hybrid View

  1. #1

    Root password recovery

    How do you recover a RedHat root password? I've heard you can by going into single user mode. How can I do this before my machine boots up?

  2. #2
    Hi,

    You cannot recover your password once lost or forgotten. But what you can do is :-

    if u r using lilo u can type single or 1 or linux single on the boot prompt, it will boot into single user mood, it will take u to bash prompt, where u can change the root pass. All done and now reboot the machine.

    Hope this helps

  3. #3
    Administrator Moderator
    Member
    starfish's Avatar
    Join Date
    Apr 2004
    Posts
    141
    This method applies if you are using RedHat/Fedora

    • 1) Restart your system
      2) When the Linux logo screen appears, the one which allows you to select the various installed kernels on the system, type the letter "a" for "append"
      3) You will get a prompt like this:

      grub append> ro root=LABEL=/

      4) Add a "1" to the end of the string like this:

      grub append> ro root=LABEL=/ 1

      5) Hit enter. The system will continue to boot, but will go straight to the root # prompt without first asking for a username and password.

    You can then change your root password and then use the "init 3" / "init 5" commands to continue the booting process to multiuser text / GUI modes

  4. #4
    Newbie
    Join Date
    May 2004
    Location
    Bucharest/Romania
    Posts
    4
    i think you can boot from another linux like knoppix and mount linux partition, chroot and erase MD5 code from root pass.

    reboot pc and login with root without password

  5. #5

    Recover Toot Passwd

    This method is useful for Red Hat Linux 9.0
    Method in Steps:

    Step # 1:
    Restart/reboot the Linux Operating System
    From Boot Loader Menu
    type [e]

    Step # 2:
    Boot Entry lsiting
    kernel/vmlinuz -2.4.18-0.4 ro root = /dev/hda2
    Press Arrow key to highlight the linux
    and press [e]

    Step # 3:
    add the word single one space after end of the text.

    Step # 4:
    press ENTER to make changes effect

    Step # 5:
    press [b]

    Step # 6:
    sh-2.05#

    Step # 7:
    bash ---> passwd root

    Step # 8:
    restart/reboot.

Similar Threads

  1. protecting root password
    By Ashutoshh in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 03-17-2012, 11:07 AM
  2. Root password recovery in Linux
    By omidkamangar in forum Linux - General Topics
    Replies: 5
    Last Post: 05-31-2006, 09:03 AM
  3. Recovery password with RedHat Linux AS2.1
    By namdn in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 10-08-2004, 02:11 AM
  4. Finding Root Password
    By Rastar in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 02-09-2003, 03:13 AM
  5. Somehow Root's password is not the same as before?
    By Rastar in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 02-20-2002, 01:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •