Hi,
I am trying to lock linux user accounts after 3 consecutive failed attempts using pam_faillock.
I have updated /etc/pam.d/common-auth to include
#At the very top
auth required pam_faillock.so preauth audit deny=3 unlock_time=30
#At the very bottom
auth sufficient pam_faillock.so authsucc audit deny=3 unlock_time=30
I then tried logging in using bad passwords for more than 3 times and did not get locked out.
running the faillock command throws the following error
#faillock
faillock: Error reading tally directory: No such file or directory
So, I created the faillock directory manually
#mkdir -p /var/run/faillock
After this, I see that the entry for the user gets created in that directory, but the file never gets updated with a tally. I tried using other users and see the same behavior. Also, the users never get locked out
#faillock
user1:
When Type Source Valid
root:
When Type Source Valid
user2:
When Type Source Valid
Has anyone run into this issue?
Regards,
Sri