Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Mar 2011 23:51:45 +0100
From:      David Demelier <>
Subject:   Question about nethack and setgid
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help

I don't understand how nethack can store the score in 

the real binary is here /usr/local/lib/nethack/nethack

And the mode is

-rwxr-sr-x  1 games  games  1793635 25 Jan 2011 

So that means people in games group will run nethack as games user 
(owner of file) but I'm not in games group ! and I can save the file 
located in

/usr/local/lib/nethack/logfile which mode is -rw-rw-r--  games  games

I'm writing a game that will store file too, because I can't make it 
works like nethack I was planning using the setuid mode but I don't like 
much this ..

What am I misunderstanding?


David Demelier

Want to link to this message? Use this URL: <>