Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14
Originally Posted by tomamodi just go to shadow remove encrupted passwd sample root:$1$dN/PzhOV$de.3Uja9QwQElWnhgVcyP.:12298:0:99999:7::: root::13046:0:99999:7::: (with out password) But you've got to already be root to do this, in which case ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    scm
    scm is offline
    Linux Engineer
    Join Date
    Feb 2005
    Posts
    1,044

    Quote Originally Posted by tomamodi
    just go to
    shadow
    remove encrupted passwd
    sample
    root:$1$dN/PzhOV$de.3Uja9QwQElWnhgVcyP.:12298:0:99999:7:::

    root::13046:0:99999:7::: (with out password)
    But you've got to already be root to do this, in which case you can just reset the password with the passwd() command.

  2. #12
    Linux Newbie
    Join Date
    Mar 2005
    Location
    Romania
    Posts
    186
    Quote Originally Posted by adam7979
    i think we should have a sticky post about how to recover root password
    Agreed
    You can only be young once. But you can always be immature.

  3. #13
    Just Joined!
    Join Date
    Nov 2005
    Posts
    1

    thanks in advance

    So I have tried everything up to here.

    on the grub interface highkight you linux distro
    press 'e' on the key board
    u will be taken to the sub menu
    here select the line that starts with the word kernel and hit 'e' again
    the line will now appear in editable mode
    donot delete anything from the line... go to the end of the line and add '1' without the quotes to it
    "kernel ***** ro root=LABEL=/ 1"
    hit enter
    now u will be taken back to the sub menu
    now press 'b'

    After this it boots normally into the login screen where I am again locked out of.

    Does it matter at all that my kernel line is VERY short and ends in the word quiet?

  4. #14
    Just Joined!
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    15
    Quote Originally Posted by scm
    Quote Originally Posted by tomamodi
    just go to
    shadow
    remove encrupted passwd
    sample
    root:$1$dN/PzhOV$de.3Uja9QwQElWnhgVcyP.:12298:0:99999:7:::

    root::13046:0:99999:7::: (with out password)
    But you've got to already be root to do this, in which case you can just reset the password with the passwd() command.
    This is a true statement. However using a LiveCD, like Knoppix, or bootdisk and rootdisk diskettes. you can mount your Linux disk to mountpoint.
    example.
    Code:
    $ mount /mnt /dev/hda5
    Now you can go to the mounted disk
    Code:
    cd /mnt
    Now attempt to edit your file /etc/passwd by vi or sed.
    Note: The file you are editing, passwd, is mounted at /mnt/etc/passwd.
    Code:
    $ vi /mnt/etc/passwd
    You want to edit the line that contains the word "root". For example, if your /etc/passwd contains the line
    Code:
    root:x3FrTg6uYT7.:0:0:root:/:/bin/sh
    edit it and blank out the password field to the next:
    Code:
    root::0:0:root:/:/bin/sh
    Save the changes, you will be able to login as root without a password.

    Other possible method:
    If you think your root password is a dictionary word or name use "John the Ripper." It is really fast and really easy to use. -google it for more info.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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