SV-244533r1069318_rule
V-244533
SRG-OS-000021-GPOS-00005
RHEL-08-020025
CAT II
10
Configure the operating system to include the use of the pam_faillock.so module in the /etc/pam.d/system-auth file.
Add/Modify the appropriate sections of the "/etc/pam.d/system-auth" file to match the following lines:
Note: The "preauth" line must be listed before pam_unix.so.
auth required pam_faillock.so preauth
auth required pam_faillock.so authfail
account required pam_faillock.so
Verify the pam_faillock.so module is present and is listed before the pam.unix.so line in the "/etc/pam.d/system-auth" file:
Note: The first field in the output is the line number of the entry
$ sudo grep -E -n 'pam_faillock.so|pam_unix.so' /etc/pam.d/system-auth
7:auth required pam_faillock.so preauth silent
13:auth sufficient pam_unix.so
17:auth required pam_faillock.so authfail
21:account required pam_faillock.so
22:account required pam_unix.so
33:password sufficient pam_unix.so sha512 shadow use_authtok
42:session required pam_unix.so
If the pam_faillock.so module is not present in the "/etc/pam.d/system-auth" file with the "preauth" line listed before pam_unix.so, this is a finding.
V-244533
False
RHEL-08-020025
Verify the pam_faillock.so module is present and is listed before the pam.unix.so line in the "/etc/pam.d/system-auth" file:
Note: The first field in the output is the line number of the entry
$ sudo grep -E -n 'pam_faillock.so|pam_unix.so' /etc/pam.d/system-auth
7:auth required pam_faillock.so preauth silent
13:auth sufficient pam_unix.so
17:auth required pam_faillock.so authfail
21:account required pam_faillock.so
22:account required pam_unix.so
33:password sufficient pam_unix.so sha512 shadow use_authtok
42:session required pam_unix.so
If the pam_faillock.so module is not present in the "/etc/pam.d/system-auth" file with the "preauth" line listed before pam_unix.so, this is a finding.
M
2921