Troubleshooting

A user can no longer log in over SSH even though the password is correct. Other users are unaffected. The authentication log shows repeated failures for this account followed by a pam_faillock message that the account is temporarily locked. What is the BEST action to restore access?

Show the answer

Correct answerD. Clear the failed-attempt counter with faillock --user for that account and the --reset option

pam_faillock tracks failed attempts per user and locks the account until the counter is reset or the timeout expires. faillock --user <name> --reset clears it. Restarting sshd does not clear the counters, which PAM stores in the faillock tally files.