Files
atap/ATAPAuditor/Helpers/ShellScripts/common/5.2.3.sh
T
2026-05-11 09:15:08 +02:00

11 lines
216 B
Bash

#!/usr/bin/env bash
PATTERN="^\h*Defaults\h+([^#]+,\h*)?logfile\h*=\h*(\"|\')?\H+(\"|\')?(,\h*\H+\h*)*\h*(#.*)?$"
FILES='/etc/sudoers*'
if grep -rPsi "$PATTERN" $FILES >/dev/null 2>&1; then
exit 0
else
exit 1
fi