Package: nethack-common
Version: 3.4.3-10
Severity: normal

By default the recover program isn't installed set-gid.  The
(low-priority) configuration question about it says that it doesn't need
to be installed setgid-games on a Debian system because it's run as root
at boot time, but this isn't the case.  /etc/init.d/nethack-common does
an su to the user owning the game before running recover-helper:

    su --shell=/bin/sh -c /usr/lib/games/nethack/recover-helper "$owner"

Since it's running as the owner of the game it's recovering it doesn't
have permissions to create the save file and it fails.

    # /etc/init.d/nethack-common start
    Recovering Nethack save files owned by roderick:
    could not chown save/1000Angler to 1000!
    Cannot create savefile in /var/games/nethack: save/1000Angler: Bad file 
descriptor
    # ls -l /usr/lib/games/nethack/recover
    -rwxr-xr-x 1 root games 6436 2006-11-13 21:31 /usr/lib/games/nethack/recover
    # ls -la /var/games/nethack/*
    total 932
    drwxrwxr-x 4 root     games  4096 2007-01-03 14:25 .
    drwxr-xr-x 5 root     root   4096 2004-11-02 10:12 ..
    -rw-r--r-- 1 games    games     0 2006-12-20 14:15 .hearse.timestamp
    -rw-rw---- 1 roderick games 29038 2007-01-01 11:31 1000Angler.0
    [...]
    -rw-rw---- 1 roderick games 16880 2007-01-01 11:25 1000Angler.9
    -rw-rw---- 1 root     games  1977 2005-03-13 10:05 bonD0.5.gz
    -rw-rw---- 1 root     games  1910 2005-03-13 10:07 bonD0.7.gz
    -rw-rw---- 1 games    games 21291 2005-03-13 10:04 bonM0.2
    drwxrwxr-x 2 root     games  4096 2007-01-03 14:26 dumps
    -rw-rw-r-- 1 root     games   807 2006-12-20 16:49 logfile
    -rw-rw-r-- 1 root     games     0 2004-11-02 10:12 perm
    -rw-rw-r-- 1 root     games   271 2006-12-20 14:13 record
    drwxrwxr-x 2 root     games  4096 2007-01-01 11:25 save

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (700, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-jones.1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages nethack-common depends on:
ii  debconf [debconf-2.0]         1.4.71     Debian configuration management sy
ii  debianutils                   2.15.3     Miscellaneous utilities specific t
ii  libc6                         2.3.6-7    GNU C Library: Shared libraries

Versions of packages nethack-common recommends:
ii  nethack-console               3.4.3-10   Text-based overhead view D&D-style

-- debconf information:
* nethack-common/recover-setgid: true
  nethack-common/backup-incompatible: backup

-- 
Roderick Schertler
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to