diff --git a/install/config/increase-sudo-tries.sh b/install/config/increase-sudo-tries.sh index 5b64b869..af5a61a6 100644 --- a/install/config/increase-sudo-tries.sh +++ b/install/config/increase-sudo-tries.sh @@ -1,3 +1,6 @@ # Give the user 10 instead of 3 tries to fat finger their password before lockout echo "Defaults passwd_tries=10" | sudo tee /etc/sudoers.d/passwd-tries sudo chmod 440 /etc/sudoers.d/passwd-tries + +# Set for hyprlock too +sudo sed -i 's/^# *deny = .*/deny = 10/' /etc/security/faillock.conf diff --git a/migrations/1765744321.sh b/migrations/1765744321.sh new file mode 100644 index 00000000..adc32e79 --- /dev/null +++ b/migrations/1765744321.sh @@ -0,0 +1,2 @@ +echo "Increase faillock attempts to 10" +sudo sed -i 's/^# *deny = .*/deny = 10/' /etc/security/faillock.conf