From e1c7c9d377e3022450be8782842ef3f2dbd53a27 Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Thu, 24 Feb 2011 06:28:48 +0000 Subject: [PATCH] The new accounting file needs to be 644 so that unprivileged users can use lastcomm(1) --- etc/rc.d/accounting | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/rc.d/accounting b/etc/rc.d/accounting index 7ebc11f508e1..502ffe65b8b3 100755 --- a/etc/rc.d/accounting +++ b/etc/rc.d/accounting @@ -58,6 +58,7 @@ accounting_rotate_log() if checkyesno accounting_enable; then _file=`mktemp newacct-XXXXX` + chmod 644 $_file ${accounting_command} ${_dir}/${_file} fi