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
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to