Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Dumb newbie, me, has forgotten root password...

  1. #1
    Join Date
    Aug 2008
    Beans
    7
    Distro
    Ubuntu 8.04 Hardy Heron

    Dumb newbie, me, has forgotten root password...

    is there any way I can recover this? I'd rather not have to re-install the OS.

  2. #2
    Join Date
    Oct 2005
    Location
    Al Ain
    Beans
    7,930

    Re: Dumb newbie, me, has forgotten root password...

    Reboot, press Escape, select Single User (Safe) mode. In console, type 'passwd'.

  3. #3
    Join Date
    Jan 2008
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Arrow Re: Dumb newbie, me, has forgotten root password...

    If you forgot you password for your ubuntu system you can recover using the following steps

    Turn your computer on.

    Press ESC at the grub prompt.

    Press e for edit.

    Highlight the line that begins kernel ………, press e

    Go to the very end of the line, add rw init=/bin/bash

    press enter, then press b to boot your system.

    Your system will boot up to a passwordless root shell.

    Type in passwd username

    Set your password.

    Type in reboot

  4. #4
    Join Date
    Jan 2008
    Beans
    7,749

    Re: Dumb newbie, me, has forgotten root password...

    There is no 'root password' in Ubuntu. You only need to remember one password, your user password. If you've forgotten that, see the post above.

  5. #5
    Join Date
    Aug 2008
    Beans
    7
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Dumb newbie, me, has forgotten root password...

    Hi HermanAB and pro003,

    Thanks for the fast responses. I have tried to do as you've suggested and when I start to type in the the new password, in single user mode, I am only able to type in one letter and I am not able to use that letter (password, I guess) to enter root mode, su, while in regular mode. Any further suggestions?

  6. #6
    Join Date
    Mar 2009
    Beans
    927
    Distro
    Ubuntu 12.04 Precise Pangolin

    Lightbulb Re: Dumb newbie, me, has forgotten root password...

    Quote Originally Posted by johnnie j View Post
    I am only able to type in one letter
    When typing in a password in a terminal you should not see anything whatsoever. This is a common issue with new users - keep typing and press enter, all will be fine.

    Quote Originally Posted by johnnie j View Post
    enter root mode
    If you have followed the above steps correctly you should start off in root mode and should see a prompt something like this:
    Code:
    root@computer:~#
    Rather than the normal prompt:
    Code:
    you@computer:~$
    Last edited by Penguin Guy; July 22nd, 2009 at 04:28 PM.

  7. #7
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Dumb newbie, me, has forgotten root password...

    Quote Originally Posted by johnnie j View Post
    Hi HermanAB and pro003,

    Thanks for the fast responses. I have tried to do as you've suggested and when I start to type in the the new password, in single user mode, I am only able to type in one letter and I am not able to use that letter (password, I guess) to enter root mode, su, while in regular mode. Any further suggestions?
    if you have admin rights, then sudo passwd root

  8. #8
    Join Date
    Mar 2009
    Beans
    120
    Distro
    Ubuntu Development Release

    Re: Dumb newbie, me, has forgotten root password...

    If you haven't changed it, the root password should be the same password as your account.

  9. #9
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Dumb newbie, me, has forgotten root password...

    Quote Originally Posted by Linux000 View Post
    If you haven't changed it, the root password should be the same password as your account.
    That's the default in Linux Mint, not in Ubuntu.

  10. #10
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Dumb newbie, me, has forgotten root password...

    I was able to reproduce this strange behavior.

    When you are editing the kernel line you have to delete the ro quiet splash(at least the splash) options before you add rw init=/bin/bash.
    Last edited by sisco311; July 22nd, 2009 at 05:03 PM.

Page 1 of 4 123 ... LastLast

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
  •