Re: How to use md5 passwords ?
On Fri, 15 Jul 2005, Markus.Grunwald@pruftechnik.com wrote:
I thought I would use MD5 Passwords because of this line in
/etc/pam.d/common-passwd:
password required pam_unix.so nullok obscure min=4 max=8 md5
But today I discovered that the format in /etc/shadow is crypt, because it
is like $1$salt$hash !
What did I do wrong ?
Probably nothing -- that's what md5 passwords in /etc/shadow look like.
They still use a salt and hash, it's just an md5 salt and hash. Old-style
crypt passwords don't have the '$1$' bit at the beginning.
Check out crypt(3), near the end, for more on how it works.
- Aaron
--
Aaron Hall : You are the first four contestants on...
ahall@vitaphone.net : THE PRICE IS RIGHT!
Reply to: