From owner-freebsd-bugs Thu Feb 19 15:51:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA21839 for freebsd-bugs-outgoing; Thu, 19 Feb 1998 15:51:44 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA21689; Thu, 19 Feb 1998 15:51:01 -0800 (PST) (envelope-from gnats) 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 ; 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 X-Send-Pr-Version: 3.2 Subject: bin/5796: Permissions in /usr/games screwed up Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5796 >Category: bin >Synopsis: Permissions in /usr/games screwed up >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 19 15:50:19 PST 1998 >Last-Modified: >Originator: Dag-Erling Coidan Smørgrav >Organization: University of Oslo, Department of Informatics >Release: FreeBSD 2.2.5-STABLE i386 >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 >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message