mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-05 03:05:20 -05:00
pam-info refactoring
This commit is contained in:
parent
caf0099064
commit
09e6af5c08
@ -41,6 +41,11 @@ if [ ! "$(id -u)" = "0" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
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)"
|
grep_result="$(grep "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account 2>/dev/null)"
|
||||||
|
|
||||||
## Check if grep matched something.
|
## Check if grep matched something.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user