-
Notifications
You must be signed in to change notification settings - Fork 209
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
[Feature Request] Action after a failed login attempt #205
Comments
Sounds like a task for PAM, not swaylock. |
@emersion , are you referring to |
There's also This will then work for any PAM-based authenticator (GDM, SDDM, lightdm, login, greetd, swaylock, i3lock, you name it), and is much better than stuffing it into swaylock. |
What you could do is create a system service that sees the number of entries in faillock if its equal to 3 or greater than 3 it can run a command. Here is an example:
Sure this isn't the best and you can make more efficient and better programs for your use case. But this is a lot easier than playing around with pam directly. |
Add a command line parameter
--action <command>
with ancommand
that should be executed every time after a failed attempt. This could be used e.g. to capture a picture withfswebcam
. The command should be called with the number of failed attempts so e.g. a bash-script could start taking pictures only aftern
failed attempts.The text was updated successfully, but these errors were encountered: