SV-269401r1050284_rule
V-269401
SRG-OS-000073-GPOS-00041
ALMA-09-037530
CAT I
10
Configure AlmaLinux OS 9 to use the SHA-512 algorithm for password hashing.
Edit/modify the following line in the "/etc/pam.d/password-auth" file to include the sha512 option for pam_unix.so:
password sufficient pam_unix.so sha512 shadow rounds=100000 use_authtok
Verify that the pam_unix.so module is configured to use sha512 in /etc/pam.d/password-auth with the following command:
$ grep -E "password.*pam_unix.so.*sha512" /etc/pam.d/password-auth
password sufficient pam_unix.so sha512 shadow rounds=100000 use_authtok
If "sha512" is missing, or the line is commented out, this is a finding.
V-269401
False
ALMA-09-037530
Verify that the pam_unix.so module is configured to use sha512 in /etc/pam.d/password-auth with the following command:
$ grep -E "password.*pam_unix.so.*sha512" /etc/pam.d/password-auth
password sufficient pam_unix.so sha512 shadow rounds=100000 use_authtok
If "sha512" is missing, or the line is commented out, this is a finding.
M
5664