Find the answer to your Linux question:
Results 1 to 6 of 6
I just got a PC running Ubuntu 7.04. Unfortunately no one in my company (and I mean no one!) remembers the root password. Do I absolutely need the root password ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Location
    San Diego, CA
    Posts
    2

    [SOLVED] Lost Root Password

    I just got a PC running Ubuntu 7.04. Unfortunately no one in my company (and I mean no one!) remembers the root password.

    Do I absolutely need the root password to install new programs, or can I play games with sudo and get the job done?

    Thanks much.

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Hello and Welcome!
    Ubuntu locks the root account, so not to worry......sudo will get you there.

    https://help.ubuntu.com/community/RootSudo
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

  3. #3
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    If someone has set a root password (making sudo impossible without it), then there's no real way to recover it, but you can boot into the recovery console and change the root password.

    http://www.linuxforums.org/forum/lin...-password.html

    Note: note, this is not a recovery... I think "recover" should be replaced with "reset", but you get the idea.

  4. #4
    Just Joined!
    Join Date
    Mar 2009
    Location
    Melbourne
    Posts
    17

    Might want to try this out

    Type this in the console -
    sudo passwd
    and use the normal user password to change the root password.

    I am not sure, if it would work for you, but it might be worth the try.

    Cheers,

  5. #5
    Linux Newbie
    Join Date
    Sep 2004
    Location
    UK
    Posts
    160
    On boot press the tab or space (to get the grub menu up). On the menu select the line begining "kernel ...."

    press e (for edit)
    add "single" to the end of the line and hit the enter key
    takes you back to the grub menu now hit "b"

    (The instructions are there when you get into the grub menu)

    This will boot into single user mode and should not require a password, now you can reset the password.

    Works in most ditributions but I hav'nt got a Ubuntu installation in front of me to verfiy it, but have 99% faith in it working.
    In a world without walls and fences, who needs Windows and Gates?

  6. #6
    Just Joined!
    Join Date
    Mar 2009
    Posts
    36
    oooh blinky, thats well cool. Will copy and paste that into my Text File of Useful Things.

Posting Permissions

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