Find the answer to your Linux question:
Results 1 to 4 of 4
Hi Is there a way I can view the encrypted passwords contained in the shadow file in a readable format as root on fedora? Regards...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    39

    etc/shadow file decryption

    Hi

    Is there a way I can view the encrypted passwords
    contained in the shadow file in a readable format as root on fedora?

    Regards

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    These are hashed and possibly salted strings.
    The algorithm varies.

    But in general: If you have file access to /etc/shadow, you can start brute force attacks on it.

    That said: I wont tell how.
    And in case this is about forgotten passwords: I would suggest to set new ones.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    2
    Quote Originally Posted by ndaka123488 View Post
    Hi

    Is there a way I can view the encrypted passwords
    contained in the shadow file in a readable format as root on fedora?

    Regards
    You can try but I seriously doubt any one will help you with this here, If you have root just change the passwords.

    or if you suspect a bad password file you can use the built in tools to convert the shadow to a file and vice versa.

  4. #4
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    As Irithori pointed out above, the passwords are Hashed, not encrypted. It is not a reversible process. When you log in, Linux hashes your given credentials to see if they match the hash in /etc/shadow.
    I believe that Fedora / RHEL are using sha256 now, which to find a collision (a matching hash without you knowing the original password,) would take a long time, longer than you have to live (you can see SHA-256 algorithm encryption - VBForums for 1 guys guesstimate.)

    If you can provide us the end result you're looking for, maybe we can help you further, but I suspect the "just change the password" method will be best.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

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