Security

A security policy for a Linux server that uses the pam_tally2 module requires an account to be locked after five consecutive failed logins. The account must unlock automatically after 15 minutes. Which line in the PAM authentication stack meets this requirement?

Show the answer

Correct answerD. auth required pam_tally2.so deny=5 unlock_time=900

The deny option sets the failure threshold, and unlock_time is measured in seconds, so 15 minutes is 900. Using unlock_time=15 would unlock the account after only 15 seconds, and root_unlock_time applies only to root with even_deny_root.