Change faillock config to proper location

This commit is contained in:
Ryan Hughes
2025-11-10 17:08:09 -05:00
parent 42fed06d9f
commit 6fd95b3e37
2 changed files with 62 additions and 3 deletions

View File

@@ -1,3 +0,0 @@
# Increase lockout limit to 10 and decrease timeout to 2 minutes
sudo sed -i 's|^\(auth\s\+required\s\+pam_faillock.so\)\s\+preauth.*$|\1 preauth silent deny=10 unlock_time=120|' "/etc/pam.d/system-auth"
sudo sed -i 's|^\(auth\s\+\[default=die\]\s\+pam_faillock.so\)\s\+authfail.*$|\1 authfail deny=10 unlock_time=120|' "/etc/pam.d/system-auth"