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 ...
- 04-15-2005 #1Just 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
- 04-17-2005 #2Linux 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...
- 04-18-2005 #3Just 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.


Reply With Quote