The new accounting file needs to be 644 so that unprivileged users

can use lastcomm(1)
This commit is contained in:
Doug Barton 2011-02-24 06:28:48 +00:00
parent 23d5a8b50f
commit e1c7c9d377

View File

@ -58,6 +58,7 @@ accounting_rotate_log()
if checkyesno accounting_enable; then
_file=`mktemp newacct-XXXXX`
chmod 644 $_file
${accounting_command} ${_dir}/${_file}
fi