Find the answer to your Linux question:
Results 1 to 8 of 8
my buddy forgot his root password (single home desktop) is there a way for him to get it back? or should he just rebuild his system?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie stinkoman's Avatar
    Join Date
    Jan 2008
    Location
    New Jersey
    Posts
    175

    forgot root password


    my buddy forgot his root password (single home desktop) is there a way for him to get it back? or should he just rebuild his system?
    please click my minicity!
    or its industry more or even its roads
    Everyone is immortal until the day they die.
    Registered Linux user #462038

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,752
    Boot off a LiveCD, mount the root (/) filesystem, delete the encrypted root password out of /etc/shadow.

    Reboot and boot off the HDD. The root account will not have a password.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Or
    Boot up in Single User Mode and execute passwd command. Assign new root password. It wont ask of earlier password.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Linux Newbie stinkoman's Avatar
    Join Date
    Jan 2008
    Location
    New Jersey
    Posts
    175
    how do i boot in single user mode?
    please click my minicity!
    or its industry more or even its roads
    Everyone is immortal until the day they die.
    Registered Linux user #462038

  5. #5
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,752
    Man, I never use single user mode except in Solaris....and that requires the root password. I *never* remember this for Linux...

    how do i boot in single user mode?
    Google => Linux Single User Mode Passwd

  6. #6
    Linux Newbie stinkoman's Avatar
    Join Date
    Jan 2008
    Location
    New Jersey
    Posts
    175
    i feel like my computer is naked after reading that rticle
    please click my minicity!
    or its industry more or even its roads
    Everyone is immortal until the day they die.
    Registered Linux user #462038

  7. #7
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Quote Originally Posted by stinkoman View Post
    i feel like my computer is naked after reading that rticle
    I felt the same way after discovering how easy it was to reset the root password. Many people set a password for the bios and for grub to increase the security, butI think if anyone has physical access to your machine, they can always find ways to compromise it if they wish.

  8. #8
    Linux Newbie sdimhoff's Avatar
    Join Date
    Jan 2007
    Posts
    191
    Another good one just to round out the field:

    Upon boot edit the boot options:
    For LILO

    "linux init=/bin/bash"

    or add it to the Grub "kernel" line
    It will give a prompt earlier at which you can use passwd for root. (after remounting -rw)
    Linux since: 2001
    Gentoo since: 2004
    - - - - - - - -
    Translation:
    I fix things until they break.

Posting Permissions

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