[BACK]Return to crontab CVS log [TXT][DIR] Up to [local] / src / etc

File: [local] / src / etc / crontab (download)

Revision 1.13, Fri Oct 6 23:56:18 2006 UTC (17 years, 7 months ago) by ray
Branch: MAIN
Changes since 1.12: +4 -4 lines

Don't allow anyone but root to read /var/log/{daily,weekly,monthly}.out.
Unfortunately this does not fix existing file permissions.

Spotted by Antti Harri <iku at openbsd dot fi>.

OK millert@.

#	$OpenBSD: crontab,v 1.13 2006/10/06 23:56:18 ray Exp $
#
# /var/cron/tabs/root - root's crontab
#
SHELL=/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute	hour	mday	month	wday	command
#
# sendmail clientmqueue runner
*/30	*	*	*	*	/usr/sbin/sendmail -L sm-msp-queue -Ac -q
#
# rotate log files every hour, if necessary
0	*	*	*	*	/usr/bin/newsyslog
# send log file notifications, if necessary
#1-59	*	*	*	*	/usr/bin/newsyslog -m
#
# do daily/weekly/monthly maintenance
30	1	*	*	*	umask 077; /bin/sh /etc/daily 2>&1 | tee /var/log/daily.out | mail -s "`/bin/hostname` daily output" root
30	3	*	*	6	umask 077; /bin/sh /etc/weekly 2>&1 | tee /var/log/weekly.out | mail -s "`/bin/hostname` weekly output" root
30	5	1	*	*	umask 077; /bin/sh /etc/monthly 2>&1 | tee /var/log/monthly.out | mail -s "`/bin/hostname` monthly output" root
#0	*	*	*	*	/usr/libexec/spamd-setup