<?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>80345</bug_id>
          
          <creation_ts>2005-02-01 07:50 0000</creation_ts>
          <short_desc>correct use of SU_WHEEL_ONLY in sys-apps/shadow</short_desc>
          <delta_ts>2005-02-10 13:05:12 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>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>greg_g@gentoo.org</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>radek@podgorny.cz</cc>
    
    <cc>richard.adam@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-02-01 07:50:18 0000</bug_when>
            <thetext>The current ebuilds for shadow apply a pacth (shadow-4.0.5-login.defs.patch)
that sets the default value for SU_WHEEL_ONLY to yes.
This applies to non-PAM systems, and was intended to match the
behaviour of PAM systems, where pam_wheel is enabled by default (that&apos;s 
explained in the handbook, too).

However, the result is not the same: the implementation of SU_WHEEL_ONLY in
shadow is such that only users in the group with gid=0 can su to root, and
not users belonging to the wheel group.

I think we should apply the following patch, which changes the behaviour of
SU_WHEEL_ONLY to match PAM (and to be consistent with its name).

Maybe this should be also submitted upstream?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-02-01 07:50:58 0000</bug_when>
            <thetext>Created an attachment (id=50134)
shadow-4.0.7-wheel.patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-02-06 15:41:32 0000</bug_when>
            <thetext>added 4.0.7 w/patch &amp; e-mailed patch upstream, thanks</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>greg_g@gentoo.org</who>
            <bug_when>2005-02-10 03:16:48 0000</bug_when>
            <thetext>*** Bug 81175 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>richard.adam@gmail.com</who>
            <bug_when>2005-02-10 13:05:12 0000</bug_when>
            <thetext>Rather than patching su, how about installing a file /etc/suauth containing the line:
root:ALL EXCEPT GROUP wheel:DENY
and leaving SU_WHEEL_ONLY as no?

See man suauth for details on what this does.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>50134</attachid>
            <date>2005-02-01 07:50 0000</date>
            <desc>shadow-4.0.7-wheel.patch</desc>
            <filename>shadow-4.0.7-wheel.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdU5yIHNoYWRvdy00LjAuNy5vcmlnL3NyYy9zdS5jIHNoYWRvdy00LjAuNy9zcmMvc3Uu
YwotLS0gc2hhZG93LTQuMC43Lm9yaWcvc3JjL3N1LmMJMjAwNS0wMi0wMSAxMjoyMjoxMS41NTM5
NTY4NjQgKzAxMDAKKysrIHNoYWRvdy00LjAuNy9zcmMvc3UuYwkyMDA1LTAyLTAxIDEyOjIyOjMz
LjA3NzY4NDc2MCArMDEwMApAQCAtMTExLDcgKzExMSw3IEBACiB7CiAJc3RydWN0IGdyb3VwICpn
cnA7CiAKLQlncnAgPSBnZXRncmdpZCAoMCk7CisJZ3JwID0gZ2V0Z3JuYW0gKCJ3aGVlbCIpOwog
CWlmICghZ3JwIHx8ICFncnAtPmdyX21lbSkKIAkJcmV0dXJuIDA7CiAJcmV0dXJuIGlzX29uX2xp
c3QgKGdycC0+Z3JfbWVtLCB1c2VybmFtZSk7Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>