a
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user