<?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>197726</bug_id>
          
          <creation_ts>2007-11-01 06:15 0000</creation_ts>
          <short_desc>net-print/hplip-2.7.9-r1: usb printer&apos;s group gets overridden by udev&apos;s default rules</short_desc>
          <delta_ts>2007-11-21 06:19:50 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>Printing</component>
          <version>2006.0</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>dima@gmail.com</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          <cc>brebs@sent.com</cc>
    
    <cc>pacho@gentoo.org</cc>
    
    <cc>udev-bugs@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>dima@gmail.com</who>
            <bug_when>2007-11-01 06:15:11 0000</bug_when>
            <thetext>My printer stopped working yet again, because of the device&apos;s permissions.

55-hpmud.rules sets the group to &quot;lp&quot;:

# Check for AiO products (0x03f0xx11).
ATTRS{idVendor}==&quot;03f0&quot;, ATTRS{idProduct}==&quot;??11&quot;, OWNER=&quot;lp&quot;, GROUP=&quot;lp&quot;, MODE=&quot;0666&quot;
...

But then, 65-permissions.rules sets the group to &quot;usb&quot;:

SUBSYSTEM==&quot;usb&quot;, ENV{DEVTYPE}==&quot;usb_device&quot;, GROUP=&quot;usb&quot;, MODE=&quot;664&quot;


Reproducible: Always

Steps to Reproduce:
1. Try to print

Actual Results:  
Nothing happens

Expected Results:  
It should print</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>brebs@sent.com</who>
            <bug_when>2007-11-01 06:38:49 0000</bug_when>
            <thetext>Rename 55-hpmud.rules to e.g. 90-hpmud.rules, so that its assignments take precedence.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2007-11-01 13:24:46 0000</bug_when>
            <thetext>Created an attachment (id=134884)
70-hplip.rules

I suggest to move the rules to 70-*.rules like libgphoto2 and other rules that change stuff set in our rules (like libusb permissions).
The attached file is as I would change the rules.

As MODE=0666 is bad for printers. Is this really needed?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pacho@gentoo.org</who>
            <bug_when>2007-11-18 18:58:51 0000</bug_when>
            <thetext>I don&apos;t suffer this problem, Are you in &quot;lp&quot; and &quot;usb&quot; groups?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>calchan@gentoo.org</who>
            <bug_when>2007-11-19 16:42:20 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; I don&apos;t suffer this problem, Are you in &quot;lp&quot; and &quot;usb&quot; groups?

I&apos;m suspecting his user is in lp but not in usb, and to me that seems like a legitimate setup. And since what Matthias suggested seemed to make sense (BTW Matthias, thanks for the crash course on udev) I went ahead and replaced the udev rules.

The fix is in hplip-2.7.10 only, so try it. If it didn&apos;t work please reopen and provide the result of hp-check plus whatever would seem relevant.

Denis.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dima@gmail.com</who>
            <bug_when>2007-11-21 06:19:50 0000</bug_when>
            <thetext>hplip-2.7.10 fixes everything, thanks.

Yes, I&apos;m in the lp group, but not in usb.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>134884</attachid>
            <date>2007-11-01 13:24 0000</date>
            <desc>70-hplip.rules</desc>
            <filename>70-hplip.rules</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBVZGV2IHJ1bGVzIG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