From 12b4737f20348db5bb8bd47769c1cd2bbe5f5d40 Mon Sep 17 00:00:00 2001 From: Wang Jinnan Date: Tue, 22 Apr 2014 12:22:55 +0800 Subject: [PATCH] Fix bug 1804: *Removing some noused cron task. *Changing the DAC of the some files about cron and logrotate. --- install_shell/crontab | 4 +--- install_shell/other.sh | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/install_shell/crontab b/install_shell/crontab index 79364d8..8931f0e 100644 --- a/install_shell/crontab +++ b/install_shell/crontab @@ -7,9 +7,7 @@ SHELL=/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin MAILTO="" -0 20 * * * audadmin /usr/sbin/runjobs /etc/cron/daily -5 20 * * mon audadmin /usr/sbin/runjobs /etc/cron/weekly -10 20 1 * * audadmin /usr/sbin/runjobs /etc/cron/monthly +0 20 * * * sysadmin /usr/sbin/runjobs /etc/cron/daily 0 20 * * * d5000 /usr/sbin/xrm.sh #Every Sunday morning, 5:0 0 5 * * 7 audadmin /usr/sbin/linx-watch-top.sh& diff --git a/install_shell/other.sh b/install_shell/other.sh index 126beb4..938b0ba 100755 --- a/install_shell/other.sh +++ b/install_shell/other.sh @@ -26,11 +26,11 @@ cp inetd.conf /etc chown root.root /etc/inetd.conf chmod 644 /etc/inetd.conf -chown -R audadmin.audadmin /etc/cron/daily/ +chown -R sysadmin.sysadmin /etc/cron/daily/ #chown -R audadmin.audadmin /etc/cron/weekly/ -chown audadmin.audadmin /etc/logrotate.conf +chown sysadmin.sysadmin /etc/logrotate.conf touch /var/lib/logrotate.status -chown audadmin.audadmin /var/lib/logrotate.status +chown sysadmin.sysadmin /var/lib/logrotate.status chmod 755 /usr/sbin/runjobs