Files
2026-05-11 09:15:08 +02:00

11 lines
232 B
Bash

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