You are not logged in.

#1 2017-06-27 09:06:27

daankata
Member
Registered: 2017-05-21
Posts: 47

Lockout user after three failed login attempts

So I read the Wiki at https://wiki.archlinux.org/index.php/Se … n_attempts First in my file at /etc/pam.d/system-login there isn't a second line to comment out. In my file there is just this, and some other lines like "auth required pam_shells.so"

auth required pam_tally.so onerr=succeed file=/var/log/faillog

When I modify the file, and log out to try it out, I only have one attempt before it locks the user out. Then, after the one failed attempt, it says that the user has been locked out due to 4 failed attemps. The most interesting part is that even when 2 minutes have gone by, supposing that I declared 30 seconds, the user is still locked out and you can't click the "Log In" button to login. Later I unlocked the user with the root and tried again but the same results occured.

auth required pam_tally.so deny=2 unlock_time=30 onerr=succeed file=/var/log/faillog

Can the following section be broken in the Wiki? I followed the steps exactly and I am sure I haven't maken a mistake.
Thank you!

Last edited by daankata (2017-06-27 09:11:37)

Offline

#2 2017-06-27 14:56:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,881

Re: Lockout user after three failed login attempts

No, this is correct.
1. Please post your actual /etc/pam.d/system-login
2. How do you login? Console? Some DM?

Offline

Board footer

Powered by FluxBB