Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Recover root password

  1. #1
    Join Date
    Feb 2012
    Beans
    4

    Exclamation Recover root password

    Hi all!

    I am trying to access an old ubuntu server machine but I don't know the root pass.
    I tried to hold shift while opening and then it gave me the Lilo boot console with no recovery options so I wrote "Linux single" but nothing happened. It opens but I don't have user/pass info.
    Any clue what can I do? I don't have cd or any other info about ubuntu version etc.
    Physical access to machine is my only path.

    Thanks in advance
    Last edited by Iowan; February 24th, 2012 at 11:29 PM. Reason: Normalized font

  2. #2
    Join Date
    Aug 2011
    Beans
    348
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Recover root password


  3. #3
    Join Date
    Dec 2011
    Location
    The Netherlands
    Beans
    1,087
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Recover root password

    I'm not gonna give hacking instructions, only use this when you really forgot your OWN root password.
    I'm not responsible for any consequences.

    Boot with in the grub cmdline
    Code:
    init=/bin/sh
    And use
    Code:
    passwd root
    to change the pass.
    "Everything that has a beginning, has an end." --an unexpectedly wise wallpaper

  4. #4
    Join Date
    Aug 2008
    Location
    WA
    Beans
    2,186
    Distro
    Ubuntu

    Re: Recover root password

    Quote Originally Posted by Ataraxos View Post
    Hi all!

    I am trying to access an old ubuntu server machine but I don't know the root pass.[
    I tried to hold shift while opening and then it gave me the Lilo boot console with no recovery options so I wrote "Linux single" but nothing happened. It opens but I don't have user/pass info.[
    Any clue what can I do? I don't have cd or any other info about ubuntu version etc.
    Physical access to machine is my only path.

    Thanks in advance
    you can reset the password but not recover it. The encryption is one-way.
    Last edited by Iowan; February 24th, 2012 at 11:31 PM. Reason: Formatting in quote

  5. #5
    Join Date
    Feb 2012
    Beans
    4

    Re: Recover root password

    @agillator
    boot: Linux init=/bin/sh didn't work
    It returns me not such an image
    It boots only with "Linux" but this is a normal boot.
    The machine runs Ubuntu and has LILO boot manager.
    Any ideas how to reset the root password?
    Last edited by Ataraxos; February 28th, 2012 at 05:31 PM.

  6. #6
    Join Date
    Nov 2011
    Location
    Zagreb, Croatia
    Beans
    113
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Recover root password

    Which Ubuntu is it? You can try and boot with one of LiveCD distros, mount root partition and change hash in /etc/shadow file for root user.

  7. #7
    Join Date
    Feb 2012
    Beans
    4

    Re: Recover root password

    Quote Originally Posted by zeljkojagust View Post
    Which Ubuntu is it?
    I don't know... How i can see this?
    Surely must be a very old version.

  8. #8
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Recover root password

    Run this from a terminal

    Code:
    lsb_release -a

  9. #9
    Join Date
    Feb 2012
    Beans
    4

    Re: Recover root password

    Quote Originally Posted by forestpiskie View Post
    Run this from a terminal

    Code:
    lsb_release -a
    I don't have access on a terminal...
    No user or root account on the machine

  10. #10
    Join Date
    Nov 2004
    Beans
    560
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Recover root password

    boot with a live cd and do what is described in the link posted by agillator.

Page 1 of 2 12 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
  •