This can be solved with a: chown games:games /usr/share/games/nethack/nethack chmod 1750 /usr/share/games/nethack/nethack chmod 640 /var/games/nethack/record This bug occurred in the past (I know. I reported it), but I can't sniff it out through search.
Could you please give information on what version of nethack you're using, with what use flags (the output of "emerge -pv <package>" ) as well as the output of "emerge --info"
Totally unnecessary, but sure -- why not? ----- # emerge -vp nethack These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] games-roguelike/nethack-3.4.3-r1 USE="-X -gnome -qt" 3,415 kB ----- # emerge --info Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.12.5 i686) ================================================================= System uname: 2.6.12.5 i686 Pentium III (Katmai) Gentoo Base System version 1.12.0_pre13 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=pentium3 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/tomcat5 /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/games /var/qmail/alias /var/qmail/control /var/www" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=pentium3 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoclean autoconfig buildpkg ccache distlocks sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib acl alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cscope cups curl directfb eds emboss encode esd exif expat fam foomaticdb fortran freetds gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 jpeg kde lcms libg++ libwww lua mad mhash mikmod ming mng motif mp3 mpeg mysql nas ncurses nls odbc ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline recode ruby samba sdl slang snmp spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev vorbis xml2 xmms xv zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
There's only 1 way I've been able to reproduce this bug (on amd64), and that's to play nethack as root (who is not in the games group) before playing it as a user. The solution is to: chown -R root:games /var/games/nethack/ As for the version and use flags information being unnecessary, how am I supposed to find a bug that may exist only in a specific version of the package and perhaps only i certain use flag combinations are used, if I don't know what you're using?
I can't reproduce this: $ ls -l /var/games/nethack/ total 8 -rw-rw---- 1 root games 68 2010-03-02 16:43 logfile -rw-rw---- 1 root games 0 2010-03-02 16:34 perm -rw-rw---- 1 root games 0 2010-03-02 16:34 record drwxrwx--- 2 root games 4096 2010-03-02 16:34 save Looks fine to me. Reopen if you can provide the steps to reproduce the issue.