Bug 26085 - nethack-3.4.1 should be installed suid games, currently broken
Bug#: 26085 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: eharney@clemson.edu
Component: Ebuilds
URL: 
Summary: nethack-3.4.1 should be installed suid games, currently broken
Keywords:  
Status Whiteboard: 
Opened: 2003-08-06 16:21 0000
Description:   Opened: 2003-08-06 16:21 0000
nethack should be installed as suid games for the "nethack" executable in
/usr/share/games/nethack.  It isn't, and therefore errors on startup cannot
function properly.  chmod u+s /usr/share/games/nethack/nethack fixes the problem.

Reproducible: Always
Steps to Reproduce:
1. emerge nethack
2. see that your user is in games group
3. see "lock perm" permission errors when running nethack

Actual Results:  
nethack began to run and errored with "No write permission to lock perm!" and
then quit.

------- Comment #1 From SpanKY 2003-08-06 18:21:46 0000 -------
if you -s the binary and 660 /usr/share/games/nethack/{record,logfile,perm},
does it work ?

please review #16164 and #22952 to see why i wont set it +s ;)

------- Comment #2 From Eric Harney 2003-08-06 18:35:34 0000 -------
No, that didn't work.  I _think_ to do that the user account has to have it's
primary group set as games(?).  Doing what you said gave the same problem with
permission on "perm" as it had when I installed it.

------- Comment #3 From Eric Harney 2003-08-06 18:40:14 0000 -------
I checked with a user with games group as the main group, and it didn't work on
that account either.

------- Comment #4 From Chris Gianelloni (RETIRED) 2003-08-07 05:50:16 0000 -------
Groups in *nix make no distinction between primary and any other groups except
that the primary group is used during file creation.

------- Comment #5 From Eric Harney 2003-08-07 07:47:38 0000 -------
Alright, well I'm not an expert on this stuff... but all I know is that when I
emerge nethack, I can't play it.  I'm pretty sure that shouldn't happen.. has
anyone else seen this?

------- Comment #6 From SpanKY 2003-08-07 20:35:22 0000 -------
ok, lock files and all that fun stuff have been moved to /var/games/nethack/

emerge -r1 and it should work for you