2018-10-30 21:13:37 +01:00
|
|
|
Index: conf/postfix-script
|
|
|
|
===================================================================
|
|
|
|
--- conf/postfix-script.orig
|
|
|
|
+++ conf/postfix-script
|
|
|
|
@@ -299,10 +299,17 @@ check-warn)
|
2017-09-28 16:24:06 +02:00
|
|
|
}
|
|
|
|
todo=`echo "$todo" | tr ' ' '\12' | sort -u`
|
|
|
|
|
|
|
|
- find $todo ! -user root \
|
|
|
|
+ if find -L $config_directory/main.cf >/dev/null 2>&1
|
|
|
|
+ then
|
|
|
|
+ FIND="find -L"
|
|
|
|
+ else
|
|
|
|
+ FIND=find
|
|
|
|
+ fi
|
|
|
|
+
|
|
|
|
+ $FIND $todo ! -user root \
|
|
|
|
-exec $WARN not owned by root: {} \;
|
|
|
|
|
|
|
|
- find $todo \( -perm -020 -o -perm -002 \) \
|
|
|
|
+ $FIND $todo \( -perm -020 -o -perm -002 \) \
|
|
|
|
-exec $WARN group or other writable: {} \;
|
|
|
|
|
|
|
|
# Check Postfix mail_owner-owned directory tree owner/permissions.
|