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

12 lines
235 B
Bash

#!/usr/bin/env bash
result=$(find /etc/audit/ -type f \( -name '*.conf' -o -name '*.rules' \) ! -group root)
if [ -z "$result" ]; then
exit 0
else
echo "Files found that do not belong to the root group:"
echo "$result"
exit 1
fi