Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26085 - nethack-3.4.1 should be installed suid games, currently broken
Summary: nethack-3.4.1 should be installed suid games, currently broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-06 16:21 UTC by Eric Harney
Modified: 2003-08-07 20:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Harney 2003-08-06 16:21:27 UTC
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 SpanKY gentoo-dev 2003-08-06 18:21:46 UTC
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 Eric Harney 2003-08-06 18:35:34 UTC
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 Eric Harney 2003-08-06 18:40:14 UTC
I checked with a user with games group as the main group, and it didn't work on that account either.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2003-08-07 05:50:16 UTC
Groups in *nix make no distinction between primary and any other groups except that the primary group is used during file creation.
Comment 5 Eric Harney 2003-08-07 07:47:38 UTC
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 SpanKY gentoo-dev 2003-08-07 20:35:22 UTC
ok, lock files and all that fun stuff have been moved to /var/games/nethack/

emerge -r1 and it should work for you