Bug 28104 - nethack-3.4.1-r1 cannot save games
Bug#: 28104 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: games@gentoo.org Reported By: gnagent2@yahoo.com.au
Component: Games
URL: 
Summary: nethack-3.4.1-r1 cannot save games
Keywords:  
Status Whiteboard: 
Opened: 2003-09-07 02:58 0000
Description:   Opened: 2003-09-07 02:58 0000
cannot save games. Bug 9147 (3.4.0-r3) seems to have been reintroduced into the
nethack-3.4.1-r1.ebuild. 
Fix is to change the owner and group of /var/games/nethack/save to games (was root).

Also I wonder if the nethack directory shouldn't be /var/lib/games/nethack
rather than /var/games/nethack.

Reproducible: Always
Steps to Reproduce:
1. nethack
2. play a little
3. save the game

------- Comment #1 From SpanKY 2003-09-14 22:30:26 0000 -------
this should be fixed ...

*** This bug has been marked as a duplicate of 26586 ***

------- Comment #2 From SpanKY 2003-09-14 23:53:04 0000 -------
hmm you're right

i fixed this is 3.4.2

------- Comment #3 From SpanKY 2003-09-14 23:55:36 0000 -------
use 3.4.2

------- Comment #4 From kyberneticist@yahoo.com 2003-10-21 07:52:38 0000 -------
Why does falcon's eye use the old root:root 2755 while Nethack sticks with
games:games ?

The only reason I'm saying this is the Nethack way allows any user in games
group to modify saved games.

Nethack has traditionally only allowed root to cheat.

------- Comment #5 From kyberneticist@yahoo.com 2003-10-21 07:53:55 0000 -------
Oh, also falcon's eye uses a completely different save location.
Instead of:
/var/games/falconseye/save
It uses:
/usr/share/falconseye/save/

------- Comment #6 From SpanKY 2003-10-21 13:01:17 0000 -------
thats because we've updated nethack and not falconseye ;)

theres an open bug about a newer version of falconseye ... when i update
that bug, i'll sync the format of falconseye with nethack

------- Comment #7 From kyberneticist@yahoo.com 2003-10-21 13:42:18 0000 -------
Soooo, just to be clear.  Nethack is *meant* to allow ordinary users to cheat?
'cause that's not the normal nethack install behaviour.

------- Comment #8 From SpanKY 2003-10-21 19:29:37 0000 -------
currently the policy is to allow people in the games group write access to
certain files only ... so yes, 'normal' users can cheat ... but then again,
any old person could d/l the game, play it, and cheat ...

unless i'm missing some aspect of nethack where 1 person cheating affects
others ...

------- Comment #9 From kyberneticist@yahoo.com 2003-10-21 20:36:13 0000 -------
Well, normally to cheat you need root priveleges, which isn't guaranteed.
 Especially if a server is being used for obsessive comparison of nethack
accomplishments :).
Also, doesn't seem to be using my default umask, but giving user group write
priveleges - so other people can erase my savegame, or otherwise mess with
it.