5.4.2 Ensure authselect includes with-faillock

Information

The pam_faillock.so module maintains a list of failed authentication attempts per user during a specified interval and locks the account in case there were more than the configured number of consecutive failed authentications (this is defined by the deny parameter in the faillock configuration). It stores the failure records into per-user files in the tally directory.

Locking out user IDs after n unsuccessful consecutive login attempts mitigates brute force password attacks against your systems.

Solution

Run the following commands to include the with-faillock option to the current authselect profile:

# authselect enable-feature with-faillock
# authselect apply-changes

See Also

https://workbench.cisecurity.org/files/4198