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

Re: hearse configuration problem - file permissions



Using chmod the first digit would be a 7 and the third digit a 5 but what 
would rws be for that second digit? On Mon, 11 Jul 2011, Bob Proulx wrote:

> David Jardine wrote:
> > Jude DaShiell wrote:
> > > jude@md:~$ sudo ls -l /var/games/nethack
> > > total 20
> > > drwxr-sr-x 2 root games 4096 Jul 10 07:43 bones
> > 
> > It looks as if you don't have read permission on the /var/games/nethack 
> > directory itself.
> 
> It looks to me like the nethack installation was chmod'd after install
> to remove group write permission.  On a fresh install you should have
> the following:
> 
>   $ ls -ld /var/games/nethack
>   drwxrwsr-x 4 root games 4096 Jul 11 11:45 /var/games/nethack
> 
>   $ ls -l /var/games/nethack
>   total 8
>   drwxrwsr-x 2 root games 4096 May 14  2010 dumps/
>   -rw-rw-r-- 1 root games    0 Jul 11 11:45 logfile
>   -rw-rw-r-- 1 root games    0 Jul 11 11:45 perm
>   -rw-rw-r-- 1 root games    0 Jul 11 11:45 record
>   drwxrwsr-x 2 root games 4096 May 14  2010 save/
> 
>   $ ls -l /usr/lib/games/nethack/nethack-*
>   -rwxr-sr-x 1 root games 1768936 May 14  2010 /usr/lib/games/nethack/nethack-console
> 
> The setgid is normal.  But your permissions on the directory have been
> corrupted.  You could probably fix the permissions.  Or purge and
> re-install but that would of course lose any of your saved games.
> 
> Bob
> 



Reply to: