Reset failed-login lockouts with faillock
Clear the faillock tally when a valid password no longer works after too many typos.
01Command
$ sudo faillock --user alice --reset02What it does
Modern distros ship pam_faillock, which denies logins for a while (commonly 10–15 minutes) after a number of wrong passwords — even the correct one. faillock without arguments lists all users currently carrying a failure tally; --user NAME shows that account's records, and --reset zeroes them so authentication works again. This covers console, SSH and display-manager logins alike, because the PAM stack enforces it everywhere.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- faillock(8) — Arch Manual PagesEvidence: Same options documented: --user to select the account and --reset to clear the tally of authentication failures.
- faillock(8) - Ubuntu manpageEvidence: SYNOPSIS faillock [--user USERNAME] [--reset] — the utility inspects and resets the authentication failure records of a user.
Last verified: 2026-09-19 · Category: Security & Privacy
06Related solutions
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Add or remove read, write, and execute permission for the owner, group, or others using symbolic or octal modes.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.