[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nethack



Nathan E Norman hat gesagt: // Nathan E Norman wrote:

> 
> What's the secret to get nethack to work?  I have it sgid games, but it
> says it can't open /var/lib/games/nethack/perm ...

Could be that nethack is not allowd to write in the directory 
/var/lib/games/nethack/

Check this:
# ls -la /var/lib/games/nethack/
drwxrwsr-x   3 root     games        1024 Nov 17 12:29 .
      ^- this is important
drwxr-xr-x   9 root     root         1024 Nov  6 13:10 ..
-rw-rw-r--   1 root     games         966 Dec  7  1997 logfile
-rw-rw-r--   1 root     games           0 Oct 29  1997 perm
-rw-rw-r--   1 root     games         745 Dec  7  1997 record
drwxrwxr-x   2 root     games        1024 Aug 19  1997 save

Fix it with:
# cd /var/lib/games/nethack/
# chgrp games .
# chmod g+s .

What version of nethack are you using? I remember this was a very old bug,
that should be removed by now.
-- 
                                                     __    __
 Frank Barknecht           ____ ______   ____ __ trip\ \  / /wire ______
                          / __// __  /__/ __// // __  \ \/ /  __ \\  ___\	
                         / /  / ____/  / /  / // ____// /\ \\  ___\\____ \	
                        /_/  /_____/  /_/  /_//_____// /  \ \\_____\\_____\
                                                    /_/    \_\ 


Reply to: