Bug 197726 - net-print/hplip-2.7.9-r1: usb printer's group gets overridden by udev's default rules
Bug#: 197726 Product:  Gentoo Linux Version: 2006.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: printing@gentoo.org Reported By: dima@gmail.com
Component: Printing
URL: 
Summary: net-print/hplip-2.7.9-r1: usb printer's group gets overridden by udev's default rules
Keywords:  
Status Whiteboard: 
Opened: 2007-11-01 06:15 0000
Description:   Opened: 2007-11-01 06:15 0000
My printer stopped working yet again, because of the device's permissions.

55-hpmud.rules sets the group to "lp":

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

But then, 65-permissions.rules sets the group to "usb":

SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb", MODE="664"


Reproducible: Always

Steps to Reproduce:
1. Try to print

Actual Results:  
Nothing happens

Expected Results:  
It should print

------- Comment #1 From Paul Bredbury 2007-11-01 06:38:49 0000 -------
Rename 55-hpmud.rules to e.g. 90-hpmud.rules, so that its assignments take
precedence.

------- Comment #2 From Matthias Schwarzott 2007-11-01 13:24:46 0000 -------
Created an attachment (id=134884) [details]
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?

------- Comment #3 From Pacho Ramos 2007-11-18 18:58:51 0000 -------
I don't suffer this problem, Are you in "lp" and "usb" groups?

------- Comment #4 From Denis Dupeyron 2007-11-19 16:42:20 0000 -------
(In reply to comment #3)
> I don't suffer this problem, Are you in "lp" and "usb" groups?

I'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't work please reopen and
provide the result of hp-check plus whatever would seem relevant.

Denis.

------- Comment #5 From Dima Ryazanov 2007-11-21 06:19:50 0000 -------
hplip-2.7.10 fixes everything, thanks.

Yes, I'm in the lp group, but not in usb.