This commit is contained in:
Patrick Schleizer 2025-05-21 12:21:45 -04:00
parent 0eea681ce8
commit 784867e24b
No known key found for this signature in database
GPG key ID: CB8D50BB77BB3C48

View file

@ -212,7 +212,7 @@ fi
deny=3 deny=3
if test -f /etc/security/faillock.conf ; then if test -f /etc/security/faillock.conf ; then
deny_line=$(grep --invert-match "#" -- /etc/security/faillock.conf | grep -- "deny =") deny_line=$(grep --invert-match "#" -- /etc/security/faillock.conf | grep -- "deny =") || true
deny="$(printf '%s\n' "$deny_line" | str_replace "=" "" | str_replace "deny" "" | str_replace " " "")" deny="$(printf '%s\n' "$deny_line" | str_replace "=" "" | str_replace "deny" "" | str_replace " " "")"
## Example: ## Example:
#deny=50 #deny=50