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
|
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.
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 ;)
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.
I checked with a user with games group as the main group, and it didn't work on
that account either.
Groups in *nix make no distinction between primary and any other groups except
that the primary group is used during file creation.
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?
ok, lock files and all that fun stuff have been moved to /var/games/nethack/
emerge -r1 and it should work for you