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
sufile="/etc/sudoers"
includes=$(awk '/^[^#]*(@|#)include(dir)?/{
if ($1 ~ /^(@|#)includedir/)
print $2"/*";
else print $2}' $sufile)
for file in $sufile $includes; do
if [[ ! $file =~ /\*$ ]] && grep -q "^[^#]*!authenticate" $file; then
exit 1
fi
done
exit 0