pam-info refactoring

This commit is contained in:
Patrick Schleizer 2022-11-16 02:01:23 -05:00
parent caf0099064
commit 09e6af5c08
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -41,6 +41,11 @@ if [ ! "$(id -u)" = "0" ]; then
exit 0
fi
if ! command -v "faillock" &>/dev/null; then
echo "$0: The faillock program is unavailable, exiting."
exit 0
fi
grep_result="$(grep "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account 2>/dev/null)"
## Check if grep matched something.