Browse Source

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@
OPENBSD_4_1
ajacoutot 18 years ago
parent
commit
a7f30172a7
3 changed files with 7 additions and 3 deletions
  1. +3
    -1
      src/etc/daily
  2. +2
    -1
      src/etc/monthly
  3. +2
    -1
      src/etc/weekly

+ 3
- 1
src/etc/daily View File

@ -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


+ 2
- 1
src/etc/monthly View File

@ -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 ""


+ 2
- 1
src/etc/weekly View File

@ -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


Loading…
Cancel
Save