diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2006-10-26 12:20:56 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2006-10-26 12:20:56 +0000 |
commit | 00047c631198913e6c3d34b57e22c0198a4cea4b (patch) | |
tree | a53057f91d5c82e11c84cb8078be672d4ecfc433 /etc | |
parent | 94ca144f1ac2a61e641a02903193d6f73ae27b9f (diff) |
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@
Diffstat (limited to 'etc')
-rw-r--r-- | etc/daily | 4 | ||||
-rw-r--r-- | etc/monthly | 3 | ||||
-rw-r--r-- | etc/weekly | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/etc/daily b/etc/daily index 2f9c8f89c94..2d8f3465b06 100644 --- a/etc/daily +++ b/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/etc/monthly b/etc/monthly index 910128c0da9..8b82ef0cb9b 100644 --- a/etc/monthly +++ b/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/etc/weekly b/etc/weekly index 72a4c89bf0e..78530bbc765 100644 --- a/etc/weekly +++ b/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 |