aboutsummaryrefslogtreecommitdiff
path: root/etc/periodic/monthly/200.accounting
diff options
context:
space:
mode:
Diffstat (limited to 'etc/periodic/monthly/200.accounting')
-rwxr-xr-xetc/periodic/monthly/200.accounting3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/periodic/monthly/200.accounting b/etc/periodic/monthly/200.accounting
index 2142193978f0..10a65d10ed5b 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