OL6-00-000061 - The system must disable accounts after three consecutive unsuccessful logon attempts - password-auth

Information

Locking out user accounts after a number of incorrect attempts prevents direct password guessing attacks.

Solution

To configure the system to lock out accounts after a number of incorrect logon attempts using 'pam_faillock.so', modify the content of both '/etc/pam.d/system-auth' and '/etc/pam.d/password-auth' as follows:

Add the following line immediately before the 'pam_unix.so' statement in the 'AUTH' section:

auth required pam_faillock.so preauth silent deny=3 unlock_time=900 fail_interval=900

Add the following line immediately after the 'pam_unix.so' statement in the 'AUTH' section:

auth [default=die] pam_faillock.so authfail deny=3 unlock_time=900 fail_interval=900

Add the following line immediately before the 'pam_unix.so' statement in the 'ACCOUNT' section:

account required pam_faillock.so

Note that any updates made to '/etc/pam.d/system-auth' and '/etc/pam.d/password-auth' may be overwritten by the 'authconfig' program. The 'authconfig' program should not be used.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_6_V2R7_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-7a., CAT|II, CCI|CCI-000044, Rule-ID|SV-208836r793621_rule, STIG-ID|OL6-00-000061, STIG-Legacy|SV-65127, STIG-Legacy|V-50921, Vuln-ID|V-208836

Plugin: Unix

Control ID: 54c659fc64015bdb683254f92e42947be1628a18362ca9769c66085259eb9756