mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
7 lines
407 B
Bash
7 lines
407 B
Bash
![]() |
echo "Increase lockout limit to 10, decrease timeout to 2 minutes"
|
||
|
|
||
|
if ! grep -q 'deny=10' /etc/pam.d/system-auth; then
|
||
|
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"
|
||
|
fi
|