Locked Out of Sudo on Arch Linux? Skip the 10 Minute Wait — Nick Janetakis
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
When you mistype your sudo password too many times on Arch Linux, Fedora, or other distros using pam_faillock, you get locked out for 10 minutes with no clear indication. Three ways to immediately unlock: switch to root and run `faillock --user $USER --reset`, reboot to clear the faillock file, or delete the file at `/var/run/faillock/$USER` as root. The lockout behavior is configurable via `/etc/security/faillock.conf` — key settings include `deny` (number of attempts before lockout), `unlock_time` (lockout duration in seconds), and `even_deny_root`. For consistency, the sudo `passwd_tries` value in the sudoers file should be kept in sync with the faillock `deny` value.
Table of contents
# Customize Lock Out Attempts and the Time# Keeping Your sudoers File in Sync# Demo VideoSort: