Find the answer to your Linux question:
Results 1 to 3 of 3
Hi! Linux uses MD5 encryption for passwords. when we check it using passwd -S thats what we get. Now what I did was create a new user and using the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Location
    India
    Posts
    43

    passwd encryption


    Hi!
    Linux uses MD5 encryption for passwords. when we check it using passwd -S thats what we get. Now what I did was create a new user and using the useradd -p option specified the password which was an exact copy of a password in the shadow file. But this time passwd -S shows the encryption as DES. How come?????

    Thanks

  2. #2
    Linux Newbie
    Join Date
    Apr 2005
    Location
    South America
    Posts
    152
    AFAIK, Linux uses DES for encryption, and the useradd -p expects the result of calling crypt(...) that works with the DES algorithm...

  3. #3
    Just Joined!
    Join Date
    Apr 2005
    Location
    India
    Posts
    43
    If you run the passwd -S command for a user that has a password. You get a message saying that the password exists and is MD5 encrypted.
    useradd -p does require an encrypted password. I copied an encrypted password from the shadow file and put it as the argument.

Posting Permissions

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