"Write permission" question.

From: Longfellow (not_at_this.address)
Date: 06/26/05


Date: Sun, 26 Jun 2005 17:42:02 -0000

Just tried Nethack for the first time, and had the misfortune to close
the wrong terminal when cleaning up the desktop. The terminal was the
one with Nethack running. Not good.

Opened another terminal and retried Nethack. This time, I got: "No write
permission to lock perm!" "perm" is one of the files in the nethack
binary package. After trying several things, I grabbed the source and
discovered it was a raw_print added to an access error (?) (-EACCES).

I thought that sort of error might be logged, but found nothing in
/var/log. IIUC, this is a write permission problem, not a lock file
problem. So I tried nethack as root, and it worked fine. Added another
user and tried nethack, got the same error message.

I've got two nethack installations, one on the system itself
(/usr/games/lib/nethackdir), and one in my own directory
($HOME/usr/games/lib/nethackdir). Root owns the former and I own the
latter. The same results occur with both: root is able to run either
game, but no other users can do so.

The installation in $HOME is brand new. Blew away the old one,
downloaded and untarred a new one as user. No change. That suggests
the permission problem is somewhere in the system itself, not the
nethack directory. Latest guess is in /proc, but I don't know enough to
know where to look, even if the guess is valid.

Can someone point me to what I need to know/do with this problem,
please?

Thanks,

Longfellow



Relevant Pages

  • dgamelaunch weirdness
    ... I decided to mess around with running a private Nethack server, ... you telnet into it. ... (I even tried running dgamelaunch as root to ... verify it wasn't a permission problem. ...
    (rec.games.roguelike.nethack)
  • Questions concerning configuring nethack under Linux
    ... I've just downloaded the binary version of nethack for Linux. ... (This is the first time I've tried to use a binary, ... Also, for some strange reason, in a standard xterm, with $TERM ... (with $TERM set to rxvt) ...
    (rec.games.roguelike.nethack)
  • Re: YAFAP: Garbled-Wiz-Gno-Fem-Neu
    ... > This is the first time I've ever ascended ... > in nethack, or won any version of nethack for that matter. ... > wrong about the altars twice, I was nearly killed by Pestilence. ... and wasn't wearing my amulet of LS. ...
    (rec.games.roguelike.nethack)
  • Re: Thoughts on making Nethack harder
    ... Nethack nearly impossible. ... when it was my first time going into it. ... Play in wizard mode, ... Dungeon level one with the amulet, ...
    (rec.games.roguelike.nethack)
  • Re: Thoughts on making Nethack harder
    ... Nethack nearly impossible. ... Yet I now realize that's why Gehennom is the way it is. ... when it was my first time going into it. ... The reason I still slog through all that, is because I like the very ...
    (rec.games.roguelike.nethack)