Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197726 - net-print/hplip-2.7.9-r1: usb printer's group gets overridden by udev's default rules
Summary: net-print/hplip-2.7.9-r1: usb printer's group gets overridden by udev's defau...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 06:15 UTC by Dima Ryazanov
Modified: 2007-11-21 06:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
70-hplip.rules (70-hplip.rules,912 bytes, text/plain)
2007-11-01 13:24 UTC, Matthias Schwarzott
Details

Note You need to log in before you can comment on or make changes to this bug.
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.