From 58e4877cc49a8d12e9968435c15261ea3c419f63 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 17 May 2002 14:05:08 +0000 Subject: Temporarily change our umask to 066 so that the potential creation of wtmp.0 is done as mode 600. This ensures that tight permissions set in /etc/newsyslog.conf for wtmp logging aren't ``betrayed''. Suggested by: lumpy MFC after: 3 days --- etc/periodic/monthly/200.accounting | 3 +++ 1 file changed, 3 insertions(+) (limited to 'etc/periodic') diff --git a/etc/periodic/monthly/200.accounting b/etc/periodic/monthly/200.accounting index 2142193..10a65d1 100755 --- a/etc/periodic/monthly/200.accounting +++ b/etc/periodic/monthly/200.accounting @@ -11,6 +11,8 @@ then source_periodic_confs fi +oldmask=$(umask) +umask 066 case "$monthly_accounting_enable" in [Yy][Ee][Ss]) W=/var/log/wtmp @@ -45,4 +47,5 @@ case "$monthly_accounting_enable" in *) rc=0;; esac +umask $oldmask exit $rc -- cgit v1.1