Add to Favourites Add to Favourites    Print this Article Print this Article

My system is saving passwords in SHA-512 and DirectAdmin can't read them. I need MD5

Some newer OS's (Fedora 9) use SHA-512 by default. DA is often not compiled with support for SHA, so once a password is changed, DA calls the "passwd" program, which would set the new password into SHA-512.  DA would then not be able to use it, and you wouldn't be able to login.

CentOS / Fedora
The solution is to edit:


Find the line:

password    sufficient sha512 shadow nullok try_first_pass use_authtok

change it to:

password    sufficient md5 shadow nullok try_first_pass use_authtok

On Debian systems, edit:


and change:




which tells the chpasswd command, called by DA, to use the MD5 instead of SHA-512.

Edit the /etc/login.conf, find the line


and replace it with:


Then run the following to rebuild the /etc/login.conf.db from the /etc/login.conf file:

cap_mkdb /etc/login.conf

Was this answer helpful?

Also Read