Make sure newly created /var/account/acct file is 0600 mode.

This commit is contained in:
jkh 1997-01-16 02:18:37 +00:00
parent b6a1f1bf5b
commit 45a95a8306

2
etc/rc
View File

@ -306,7 +306,7 @@ fi
if [ "X${accounting}" = X"YES" -a -d /var/account ]; then
echo 'turning on accounting'
if [ ! -e /var/account/acct ]; then
touch /var/account/acct
touch /var/account/acct && chmod 600 /var/account/acct
fi
accton /var/account/acct
fi