This commit is contained in:
2026-05-11 09:15:08 +02:00
parent 9bec2b9e42
commit 404ee3fec4
641 changed files with 416825 additions and 0 deletions
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
pw_file="/etc/security/pwhistory.conf"
value="enfore_for_root"
regex_pattern="^\s*#*\s*${value}\s*"
if grep -Eq "^\s*${value}\s*$" "$pw_file"; then
echo "$value is correctly set."
exit 0
else
echo "ERROR: $value is either missing or commented out."
exit 1
fi