From finrod@ppp062.uio.no  Thu Feb 19 15:44:59 1998
Received: from ppp062.uio.no (ppp062.uio.no [129.240.240.67])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA19653
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Feb 1998 15:44:52 -0800 (PST)
          (envelope-from finrod@ppp062.uio.no)
Received: (from root@localhost)
	by ppp062.uio.no (8.8.8/8.8.8) id XAA07279;
	Thu, 19 Feb 1998 23:45:22 GMT
	(envelope-from finrod)
Message-Id: <199802192345.XAA07279@ppp062.uio.no>
Date: Thu, 19 Feb 1998 23:45:22 GMT
From: dag-erli@ifi.uio.no
Reply-To: dag-erli@ifi.uio.no
To: FreeBSD-gnats-submit@freebsd.org
Subject: Permissions in /usr/games screwed up
X-Send-Pr-Version: 3.2

>Number:         5796
>Category:       bin
>Synopsis:       Permissions in /usr/games screwed up
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eivind
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 19 15:50:19 PST 1998
>Closed-Date:    Fri Feb 20 00:45:05 PST 1998
>Last-Modified:  Fri Feb 20 00:45:46 PST 1998
>Originator:     Dag-Erling Coidan Smrgrav
>Release:        FreeBSD 2.2.5-STABLE i386
>Organization:
University of Oslo, Department of Informatics
>Environment:

FreeBSD 2.2.5-STABLE, last CVSup and make world on February 17th

>Description:

Permissions and ownership of games and dm(8) are screwed up, so that
playing games is no longer possible (dm(8) does not have permission to
access /usr/games/hide)

On another FreeBSD box (last CVSup and make world on February 10th),
the Makefile for dm(8) sets BINOWN to 'games' and BINMODE to 4555.
This is correct because /usr/games/hide is owned by 'games' and mode
700, so dm(8) must be SUID to 'games' to access it.

At some point between February 10th and February 17th, the Makefile
for dm(8) was changed so that it now sets BINGRP to 'games' and
BINMODE to 2555, but /usr/games/hide is unchanged. This means dm(8)
can no longer read /usr/games/hide.

>How-To-Repeat:

As root:

# cd /usr/src/games
# make install

As a user:

$ battlestar
dm: /usr/games/hide/battlestar: Permission denied


>Fix:
	
--- /usr/src/games/dm/Makefile.orig     Fri Feb 20 00:44:25 1998
+++ /usr/src/games/dm/Makefile  Fri Feb 20 00:44:42 1998
@@ -4,7 +4,7 @@
 PROG=  dm
 MAN8=  dm.8
 MAN5=  dm.conf.5
-BINGRP= games
-BINMODE=2555
+BINOWN= games
+BINMODE=4555
 
 .include <bsd.prog.mk>
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->eivind 
Responsible-Changed-By: steve 
Responsible-Changed-When: Thu Feb 19 16:40:57 PST 1998 
Responsible-Changed-Why:  
eivind fixed this the first time. 
State-Changed-From-To: open->closed 
State-Changed-By: eivind 
State-Changed-When: Fri Feb 20 00:45:05 PST 1998 
State-Changed-Why:  
eivind fixed this the second time, too. 
>Unformatted:
