From a7f30172a7df4a5088ae3fee4278bc2dd3749375 Mon Sep 17 00:00:00 2001 From: ajacoutot <> Date: Thu, 26 Oct 2006 12:20:55 +0000 Subject: [PATCH] Force umask to 022 so we don't heritate 077 from root's crontab command (output logs are still umask 077) "i think this is right" deraadt@ --- src/etc/daily | 4 +++- src/etc/monthly | 3 ++- src/etc/weekly | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/etc/daily b/src/etc/daily index 2f9c8f89..2d8f3465 100644 --- a/src/etc/daily +++ b/src/etc/daily @@ -1,8 +1,10 @@ #!/bin/sh - # -# $OpenBSD: daily,v 1.55 2006/10/04 17:46:34 deraadt Exp $ +# $OpenBSD: daily,v 1.56 2006/10/26 12:20:55 ajacoutot Exp $ # From: @(#)daily 8.2 (Berkeley) 1/25/94 # +umask 022 + PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin bak=/var/backups diff --git a/src/etc/monthly b/src/etc/monthly index 910128c0..8b82ef0c 100644 --- a/src/etc/monthly +++ b/src/etc/monthly @@ -1,5 +1,6 @@ #!/bin/sh - -# $OpenBSD: monthly,v 1.6 2005/11/12 16:14:37 jmc Exp $ +# $OpenBSD: monthly,v 1.7 2006/10/26 12:20:55 ajacoutot Exp $ +umask 022 if [ -f /etc/monthly.local ];then echo "" diff --git a/src/etc/weekly b/src/etc/weekly index 72a4c89b..78530bbc 100644 --- a/src/etc/weekly +++ b/src/etc/weekly @@ -1,7 +1,8 @@ #!/bin/sh - # -# $OpenBSD: weekly,v 1.17 2006/10/06 04:50:31 hugh Exp $ +# $OpenBSD: weekly,v 1.18 2006/10/26 12:20:55 ajacoutot Exp $ # +umask 022 PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec export PATH