Can I force the passwd command to use MD5 hash (and not crypt)?
772
How can I force the passwd command to use MD5 hash and not to use crypt? I need to get the passwd command to talk to the ldap server (which it does) and use MD5 when I change passwords for the users.
Assuming Linux: set value of ENCRYPT_METHOD in /etc/login.defs to MD5.
Set the following in your
/etc/login.defs
file:You can also use the authconfig command like so:
Just search in the man page.