Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2011 06:28:48 +0000 (UTC)
From:      Doug Barton <dougb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218986 - head/etc/rc.d
Message-ID:  <201102240628.p1O6Smi3024500@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougb
Date: Thu Feb 24 06:28:48 2011
New Revision: 218986
URL: http://svn.freebsd.org/changeset/base/218986

Log:
  The new accounting file needs to be 644 so that unprivileged users
  can use lastcomm(1)

Modified:
  head/etc/rc.d/accounting

Modified: head/etc/rc.d/accounting
==============================================================================
--- head/etc/rc.d/accounting	Wed Feb 23 21:45:28 2011	(r218985)
+++ head/etc/rc.d/accounting	Thu Feb 24 06:28:48 2011	(r218986)
@@ -58,6 +58,7 @@ accounting_rotate_log()
 
 	if checkyesno accounting_enable; then
 		_file=`mktemp newacct-XXXXX`
+		chmod 644 $_file
 		${accounting_command} ${_dir}/${_file}
 	fi
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102240628.p1O6Smi3024500>