Date: Fri, 17 May 2002 15:20:28 +0100 From: Brian Somers <brian@Awfulhak.org> To: arch@FreeBSD.org Cc: Brian Somers <brian@Awfulhak.org> Subject: Restricting umasks in periodic scripts Message-ID: <200205171420.g4HEKSWs093218@hak.lan.Awfulhak.org>
index | next in thread | raw e-mail
Hi,
I'd like to poll arch for opinions on the attached patch. Whilst
I believe I've plugged all of the existing umask-type problems in
-current (soon to be MFC'd re@ willing), it's usually better to be
safe.
Cheers.
--
Brian <brian@Awfulhak.org> <brian@freebsd-services.com>
<http://www.Awfulhak.org> <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org>
Index: crontab
===================================================================
RCS file: /home/ncvs/src/etc/crontab,v
retrieving revision 1.31
diff -u -r1.31 crontab
--- crontab 19 Feb 2001 02:47:41 -0000 1.31
+++ crontab 17 May 2002 14:16:59 -0000
@@ -17,9 +17,9 @@
0 * * * * root newsyslog
#
# do daily/weekly/monthly maintenance
-1 3 * * * root periodic daily
-15 4 * * 6 root periodic weekly
-30 5 1 * * root periodic monthly
+1 3 * * * root umask 077; periodic daily
+15 4 * * 6 root umask 077; periodic weekly
+30 5 1 * * root umask 077; periodic monthly
#
# time zone change adjustment for wall cmos clock,
# does nothing, if you have UTC cmos clock.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205171420.g4HEKSWs093218>
