Increase faillock to 10

This commit is contained in:
Ryan Hughes 2025-12-14 15:32:37 -05:00
parent 7b05dcfe0c
commit a15d3740a9
2 changed files with 5 additions and 0 deletions

View File

@ -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

2
migrations/1765744321.sh Normal file
View File

@ -0,0 +1,2 @@
echo "Increase faillock attempts to 10"
sudo sed -i 's/^# *deny = .*/deny = 10/' /etc/security/faillock.conf