From 4a6f85e67a2030fe38b860fedb6628433bcabeb5 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Tue, 3 Sep 2002 06:57:23 +0000 Subject: CHECK_SUID_GROUP => CHECK_SGID --- cron-sh/diff_check.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cron-sh/diff_check.sh') diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh index ac7c10c..084de68 100755 --- a/cron-sh/diff_check.sh +++ b/cron-sh/diff_check.sh @@ -38,16 +38,16 @@ if [[ ${CHECK_SUID_ROOT} == yes ]]; then fi -### New Suid group files detection -if [[ ${CHECK_SUID_GROUP} == yes ]]; then +### New Sgid files detection +if [[ ${CHECK_SGID} == yes ]]; then - if [[ -f ${SUID_GROUP_YESTERDAY} ]]; then - if ! diff -u ${SUID_GROUP_YESTERDAY} ${SUID_GROUP_TODAY} > ${SUID_GROUP_DIFF}; then + if [[ -f ${SGID_YESTERDAY} ]]; then + if ! diff -u ${SGID_YESTERDAY} ${SGID_TODAY} > ${SGID_DIFF}; then printf "\nSecurity Warning: Changes in Sgid files found :\n" >> ${TMP} - grep '^+' ${SUID_GROUP_DIFF} | grep -vw "^+++ " | sed 's|^.||' | while read file; do + grep '^+' ${SGID_DIFF} | grep -vw "^+++ " | sed 's|^.||' | while read file; do printf "\t\t- Newly added sgid file : ${file}\n" done >> ${TMP} - grep '^-' ${SUID_GROUP_DIFF} | grep -vw "^--- " | sed 's|^.||' | while read file; do + grep '^-' ${SGID_DIFF} | grep -vw "^--- " | sed 's|^.||' | while read file; do printf "\t\t- No longer present sgid file : ${file}\n" done >> ${TMP} fi -- cgit v1.2.1