<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>26085</bug_id>
          
          <creation_ts>2003-08-06 16:21 0000</creation_ts>
          <short_desc>nethack-3.4.1 should be installed suid games, currently broken</short_desc>
          <delta_ts>2003-08-07 20:35:22 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>eharney@clemson.edu</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>eharney@clemson.edu</who>
            <bug_when>2003-08-06 16:21:27 0000</bug_when>
            <thetext>nethack should be installed as suid games for the &quot;nethack&quot; executable in
/usr/share/games/nethack.  It isn&apos;t, and therefore errors on startup cannot
function properly.  chmod u+s /usr/share/games/nethack/nethack fixes the problem.

Reproducible: Always
Steps to Reproduce:
1. emerge nethack
2. see that your user is in games group
3. see &quot;lock perm&quot; permission errors when running nethack

Actual Results:  
nethack began to run and errored with &quot;No write permission to lock perm!&quot; and
then quit.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-08-06 18:21:46 0000</bug_when>
            <thetext>if you -s the binary and 660 /usr/share/games/nethack/{record,logfile,perm}, does it work ?

please review #16164 and #22952 to see why i wont set it +s ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eharney@clemson.edu</who>
            <bug_when>2003-08-06 18:35:34 0000</bug_when>
            <thetext>No, that didn&apos;t work.  I _think_ to do that the user account has to have it&apos;s primary group set as games(?).  Doing what you said gave the same problem with permission on &quot;perm&quot; as it had when I installed it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eharney@clemson.edu</who>
            <bug_when>2003-08-06 18:40:14 0000</bug_when>
            <thetext>I checked with a user with games group as the main group, and it didn&apos;t work on that account either.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2003-08-07 05:50:16 0000</bug_when>
            <thetext>Groups in *nix make no distinction between primary and any other groups except that the primary group is used during file creation.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eharney@clemson.edu</who>
            <bug_when>2003-08-07 07:47:38 0000</bug_when>
            <thetext>Alright, well I&apos;m not an expert on this stuff... but all I know is that when I emerge nethack, I can&apos;t play it.  I&apos;m pretty sure that shouldn&apos;t happen.. has anyone else seen this?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-08-07 20:35:22 0000</bug_when>
            <thetext>ok, lock files and all that fun stuff have been moved to /var/games/nethack/

emerge -r1 and it should work for you</thetext>
          </long_desc>
      
    </bug>

</bugzilla>