The new accounting file needs to be 644 so that unprivileged users
can use lastcomm(1)
This commit is contained in:
parent
23d5a8b50f
commit
e1c7c9d377
@ -58,6 +58,7 @@ accounting_rotate_log()
|
||||
|
||||
if checkyesno accounting_enable; then
|
||||
_file=`mktemp newacct-XXXXX`
|
||||
chmod 644 $_file
|
||||
${accounting_command} ${_dir}/${_file}
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user