Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pam/gtk] pressing the Tab key or clicking on the password field without entering a password causes the login failure count to increase #157

Open
yangzhenyu-123 opened this issue Jan 31, 2024 · 0 comments

Comments

@yangzhenyu-123
Copy link

you can add the following line to the /etc/pam.d/common-auth file:

auth required pam_tally.so per_user unlock_time=600 onerr=succeed audit deny=5

This configuration enables the pam_tally module with specific parameters:

per_user: Counts failed login attempts per user.
unlock_time=600: Sets the account lockout time to 600 seconds (10 minutes).
onerr=succeed: Continues authentication if an error occurs.
audit deny=5: Logs an audit message after 5 failed login attempts.

when using the lightdm-gtk-greeter login screen, if there are 5 consecutive failed login attempts, the account will be locked. Additionally, pressing the Tab key or clicking on the password field (without entering a password) will also increment the failed login count.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant