From 2309498e90ba7a22ba68d27f53ff126eec727386 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 12 Sep 2023 04:44:58 -0700 Subject: [PATCH] :memo: Made note of how faillock generally works --- faillock.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 faillock.txt diff --git a/faillock.txt b/faillock.txt new file mode 100644 index 00000000..4b3ff8cd --- /dev/null +++ b/faillock.txt @@ -0,0 +1,9 @@ +Sometimes you'll accidentally not use your password correctly the amount of times set in /etc/security/faillock.conf (defaults to 3 failed attempts) + +Should you need to quickly reset and not wait the default allotted 10 minutes, simply invoke 'su'. Enter your root password, and run: + +``` +faillock --user $USER --reset +``` + +Where $USER is your username. Keep in mind this will NOT work on a TTY, as there is NO way to log in as root, without severely compromising security (and is thusly not recommended). So if you want to increase the failed attempts allowed, edit /etc/faillock.conf under the config field that allows you to do so.