Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 197726

Summary: net-print/hplip-2.7.9-r1: usb printer's group gets overridden by udev's default rules
Product: Gentoo Linux Reporter: Dima Ryazanov <dima>
Component: [OLD] PrintingAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal CC: brebs, pacho, udev-bugs
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 70-hplip.rules

Description Dima Ryazanov 2007-11-01 06:15:11 UTC
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 Paul Bredbury 2007-11-01 06:38:49 UTC
Rename 55-hpmud.rules to e.g. 90-hpmud.rules, so that its assignments take precedence.
Comment 2 Matthias Schwarzott gentoo-dev 2007-11-01 13:24:46 UTC
Created attachment 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 Pacho Ramos gentoo-dev 2007-11-18 18:58:51 UTC
I don't suffer this problem, Are you in "lp" and "usb" groups?
Comment 4 Denis Dupeyron (RETIRED) gentoo-dev 2007-11-19 16:42:20 UTC
(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 Dima Ryazanov 2007-11-21 06:19:50 UTC
hplip-2.7.10 fixes everything, thanks.

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