Information
Using a stronger hashing algorithm makes password-cracking attacks more difficult.
NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.
Solution
In '/etc/pam.d/system-auth', '/etc/pam.d/system-auth-ac', '/etc/pam.d/password-auth', and '/etc/pam.d/password-auth-ac', among potentially other files, the 'password' section of the files control which PAM modules execute during a password change.
Set the 'pam_unix.so' module in the 'password' section to include the argument 'sha512', as shown below:
password sufficient pam_unix.so sha512 [other arguments...]
This will help ensure when local users change their passwords, hashes for the new passwords will be generated using the SHA-512 algorithm. This is the default.
Note: Any updates made to '/etc/pam.d/system-auth' and '/etc/pam.d/password-auth' will be overwritten by the 'authconfig' program. The 'authconfig' program should not be used.