Date: Thu, 19 Feb 1998 23:45:22 GMT From: dag-erli@ifi.uio.no To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5796: Permissions in /usr/games screwed up Message-ID: <199802192345.XAA07279@ppp062.uio.no>
next in thread | raw e-mail | index | archive | help
>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 <bsd.prog.mk> >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802192345.XAA07279>