1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Root Password for Mandrake Linux 9.1

Discussion in 'Linux and Unix' started by abeer_d, Sep 24, 2003.

Thread Status:
Not open for further replies.
Advertisement
  1. abeer_d

    abeer_d Thread Starter

    Joined:
    Aug 29, 2002
    Messages:
    141
    Hi,
    I got a PC assembled a few days back and got Mandrake Linux 9.1 installed on it.

    However the assembler forgot to give me the root password he had set up during the installation.

    Is there anyway I can get the password without asking the assembler for it?

    Thank you.
     
  2. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,783
  3. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,783
    If you boot with a Loaf disk you would do something like this.

    (1) Get one of the mini-linux distributions (http://www.toms.net/rb/ or http://www.kernel.org/pub/dist/superrescue/v2/)
    and boot up off that.

    (2) manually mount the partition that contains the root file systems

    (3)Find and edit the file /etc/shadow

    FYI: Given a shadow file entry like:

    root:$1$7Mâ5ºl8o$qUT7nwuswQLwNObmc.r8a1:11874:0:99999:7:::

    changing that to read:

    root::11874:0:99999:7:::

    will remove root's passwd. You are basically removing everything between the first set of colons.

    When you rebooted your system you can set a password for root with 'passwd root'.
     
  4. soup4you2

    soup4you2

    Joined:
    Jul 8, 2003
    Messages:
    70
    Another method if you have the 'pw' command.. i dont know if your distro does or now.. but once you mount it

    pw -V /mnt/etc usermod username_here -h fd

    and you should see:
    bash-2.05b# pw -V $tgt/etc usermod root -h fd
    New password for user root:
     
  5. lynch

    lynch

    Joined:
    Aug 3, 2002
    Messages:
    1,961
    Why cant you ask the "assembler" for the password?
    I've caught hell for telling people how to crack open root accounts.
    And according to this:
    It may apply to this question.
    lynch(the stick in the mud:) )
     
  6. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,783
    Well if it is not there own system then hopefully the owner of the computer has the bootloader password protected and the bios set not to boot from other devices and password protected.
     
  7. abeer_d

    abeer_d Thread Starter

    Joined:
    Aug 29, 2002
    Messages:
    141
    Don't worry, i am no hacker.The assembler's out of town.

    Though going by the looks of the replies(i am a linux newbie so they are all greek to me) I think I would have to ask the assembler in the end :p

    Anyways I will try to try out your suggestions and get back .

    Thanks for the help.

    See you ppl soon :)
     
  8. lynch

    lynch

    Joined:
    Aug 3, 2002
    Messages:
    1,961
    abeer d:you got PM
    lynch
     
  9. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/167079

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice