4

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.

MyOnlyEye
  • 135

3 Answers3

2

Assuming Linux: set value of ENCRYPT_METHOD in /etc/login.defs to MD5.

Paweł Brodacki
  • 6,591
  • 1
  • 22
  • 23
2

Set the following in your /etc/login.defs file:

MD5_CRYPT_ENAB yes
tylerl
  • 15,245
0

You can also use the authconfig command like so:

authconfig --enablemd5

Just search in the man page.

mgorven
  • 31,399
Boogy
  • 1