From owner-freebsd-arch Fri May 17 7:20:41 2002 Delivered-To: freebsd-arch@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 7DB0D37B40A for ; Fri, 17 May 2002 07:20:35 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [IPv6:fec0::1:12]) by Awfulhak.org (8.12.3/8.12.3) with ESMTP id g4HEKYva037855 for ; Fri, 17 May 2002 15:20:34 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.3/8.12.3) with ESMTP id g4HEKSWs093218; Fri, 17 May 2002 15:20:28 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200205171420.g4HEKSWs093218@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: arch@FreeBSD.org Cc: Brian Somers Subject: Restricting umasks in periodic scripts Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 17 May 2002 15:20:28 +0100 From: Brian Somers Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 Don't _EVER_ lose your sense of humour ! 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