🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #4642

Re: Hash table woes

#4642
From: Tony Acero
Date: Wed, 08 Mar 1995 19:49
51 lines
3080 bytes
In article <D54uJ5.6un@swcp.com>, Rev. J B Bell <cipher@swcp.com> wrote:
>Well, I've got Gnuchess 4.0 pl74 installed on our system here.  Had 
>trouble with getting the book to exist, read the tip about "make 
>gnuchess.data", which worked, yay!
>
>Now, however, the program says it is "playing without hashfile".  Is 
>there another make I need to do?

You have to make sure that gnuchess, et. al, have write permission to
the hash file, wherever it's installed.

I usually do something like this:

# ls -l /usr/games/gnu*
-rwxr-sr-x   1 games    games      190532 Feb 20 11:42 gnuan*
-rwxr-sr-x   1 games    games      190552 Feb 23 14:38 gnuan2*
-rwxr-sr-x   1 games    games      204550 Feb 20 11:36 gnuchess*
-rwxr-sr-x   1 games    games      194205 Feb 20 11:42 gnuchessc*

You can set these permissions in two steps, ie. : 

chown games.games /usr/games/gnuchess
chmod 2755 /usr/games/gnuchess

#ls -la /usr/lib/gnuchess # where the gnuchess stuff is stored
total 7621
drwxrwxr-x   2 games    games        1024 Feb 20 11:50 ./  <--- NOTE!
drwxr-xr-x  30 root     root         3072 Feb 27 12:03 ../
-rw-rw-r--   1 games    games      171176 Aug 19  1994 eco.pgn
-rw-rw-r--   1 games    games     2256012 Feb 20 11:02 gnuchess.data*
-rw-rw-r--   1 games    games      332288 Feb 20 11:43 gnuchess.eco*
-rw-rw-r--   1 games    games     4980736 Mar  3 15:39 gnuchess.hash
-rw-rw-r--   1 games    games       20787 Aug 10  1994 gnuchess.lang

Note that the gnuchess data files are owned by games.games and writable
by both group and owner (owner-writable is not necessary, group-writable
is sufficient), and that the programs are set to take on the identity of
the "games" group ("sgid").  I made them "sgid" instead of "suid" so
that the programs could still write out the game log in the current
directory (usually the players home directory).  Also note the ownership
and permissions of /usr/lib/gnuchess!

You could also make the programs owned by and "suid" root, but this is a
very, very bad idea.

Tony Acero
-- 
Anibal Antonio Acero (Tony) (LLama) | Stone age or space age, man will be ask-
      a-acero@uchicago.edu          | ing the same question as his grandparents
___W(312)702-8214 H(312)752-5464____| before him and as his grandchildren after
him: "What star is that?" -- H.A. Rey, _The Stars, A New Way to See Them_
Technical Details
Message-ID: <D550Ev.Ezr@midway.uchicago.edu>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!kimbark!ace3
References: <D54uJ5.6un@swcp.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,84327ca6bc893006
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1995-03-09 17:05:28 PST
Newsgroups: gnu.chess
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!kimbark!ace3
From: ace3@kimbark.uchicago.edu (Tony Acero)
Subject: Re: Hash table woes
X-Nntp-Posting-Host: midway.uchicago.edu
Message-ID: <D550Ev.Ezr@midway.uchicago.edu>
Sender: news@midway.uchicago.edu (News Administrator)
Reply-To: ace3@midway.uchicago.edu
Organization: Advanced Research Systems, The Univ. of Chicago
References: <D54uJ5.6un@swcp.com>
Date: Wed, 8 Mar 1995 19:49:42 GMT
Lines: 51