aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/security_check.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index f5b32fd..8714128 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -56,7 +56,11 @@ fi
if [[ ${CHECK_PERMS} == yes ]]; then
# running msec_perms
- printf "\tChecking permissions on system files"
+ test -x /usr/bin/msecperms && /usr/sbin/msecperms 2>&1 > ${TMP}
+ if [[ -s ${TMP} ]]; then
+ printf "\tPermissions changes on system files:\n" >> ${SECURITY}
+ cat ${TMP} >> ${SECURITY}
+ fi
fi
if [[ ${CHECK_USER_FILES} == yes ]]; then