From jkb@shell6.ba.best.com  Mon Jul 27 03:58:12 1998
Received: from shell6.ba.best.com (root@shell6.ba.best.com [206.184.139.137])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA24891
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Jul 1998 03:58:10 -0700 (PDT)
          (envelope-from jkb@shell6.ba.best.com)
Received: (from jkb@localhost)
	by shell6.ba.best.com (8.9.0/8.9.0/best.sh) id DAA13707;
	Mon, 27 Jul 1998 03:57:22 -0700 (PDT)
Message-Id: <199807271057.DAA13707@shell6.ba.best.com>
Date: Mon, 27 Jul 1998 03:57:22 -0700 (PDT)
From: jkb@best.com
Reply-To: jkb@best.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Wrong file permissions in /var/log/
X-Send-Pr-Version: 3.2

>Number:         7411
>Category:       misc
>Synopsis:       Wrong file permissions in /var/log/
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 27 04:00:01 PDT 1998
>Closed-Date:    Mon Jul 27 05:59:49 PDT 1998
>Last-Modified:  Mon Jul 27 06:00:10 PDT 1998
>Originator:     Jan B. Koum
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
None 
>Environment:

	Any new install of 2.2.x

>Description:

	Files in /var/log/ have incorrect permissions. 
	Nobody in the world other then admins (who are in group wheel) has any
	reason to read /var/log/messages: chmod it to o-r
	Nobody has also any need to know who and from do we send and receive
	mail: chmod o-r /var/log/maillog
	Also, some files in /var/log/ (such lastlog, wtmp, maillog, messages)
	have g+w: this should be g-w

>How-To-Repeat:

	Do fresh install of 2.2.x 

>Fix:

	# cd /var/log
	# chmod g-w *
	# chmod o-r * ; chmod a+r wtmp

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Mon Jul 27 05:59:49 PDT 1998 
State-Changed-Why:  
you should set this in /etc/newsyslog.conf 
>Unformatted:
