diff --git a/pages/04.other/useful-commands/default.en.md b/pages/04.other/useful-commands/default.en.md index 3996565..0f8c455 100644 --- a/pages/04.other/useful-commands/default.en.md +++ b/pages/04.other/useful-commands/default.en.md @@ -75,6 +75,29 @@ paru -S --rebuild=yes ## Various +### Unlock user after too many failed sudo attempts + +Use `faillock` to check for failed sudo attempts + +[shroot] + +``` +faillock --user +``` + +[/shroot] + +Unlock a locked account +[shroot] + +``` +faillock --user --reset +``` + +[/shroot] + +> [Unlock user after too many failed sudo attempts by Josh Sherman](https://joshtronic.com/2021/05/23/unlock-user-after-too-many-failed-sudo-attempts/) + ### Overwrite disk with pseudorandom data Using openssl on CPUs with AES acceleration one can create pseudorandom data with high speeds.