Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slackware 12.2, custom built kernel (2.2.27.7)
HP PSC 1209 USB AiO printer (Bus 002 Device 004: ID 03f0:2f11 Hewlett-Packard PSC 1200)
Using udev and CUPS for printer control
Problem:
When powering on/plugging in the printer, the permissions for the device are not following those in /lib/udev/rules.d/55-hpmud.rules:
Setup the printer in CUPS and hplip. Root can access the hp-toolbox, but users cannot. User in question is a member of lp, plugdev, scanner and just about every other group someone has mentioned when dealing with udev printer issues. Still a no go.
If I change the mask on the printer device with:
chmod 0666 /dev/bus/usb/002/004
then the user(s) can access the device and hp-toolbox works.
What I've tried:
* Removed udev, rule files and reinstalled via the package for 12.2
* Removed hplip and reinstalled via the package for 12.2
* Removed hplip and downloaded the latest source tarball. Rebuilt it following their instructions.
* Tried changing the AiO line in 55-hpmud.rules to:
# Check for AiO products (0x03f0xx11).
SYSFS{idVendor}=="03f0", SYSFS{idProduct}=="??11", OWNER="lp", GROUP="lp", MODE="0666", ENV{sane_hpaio}="yes"
* Checked kernel config and removed the deprecated CONFIG_USB_DEVICE_CLASS, rebuilt, rebooted. (Saw that in another Linux forum)
* With and without the above kernel option, tried commenting out from 50-udev-default.rules:
# libusb device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
(Again, saw that suggestion on another Linux forum. Currently, the line is uncommented in the rules file.)
No matter what I do, the /dev/usb/lp0 device has the permissions set properly, but the /dev/bus/usb/002/004 does not.
If you upgraded from 12.1, you should erase the old rules in /etc/udev/rules.d as they can conflict with the new ones in /lib/udev/rules.d
On a clean 12.2 install you should have only 70-persistent-cd.rules and 70-persistent-net.rules in /etc/udev/rules.d
PS rule of thumb: in case of a problem and if you use a custom kernel, try to reproduce it using a kernel included in the distribution -- preferably generic-2.6.27-7smp for Slackware 12.2. You only need to add an entry in lilo.conf to do that.
Last edited by Didier Spaier; 02-09-2009 at 11:46 AM.
Re: Slackware 12.2 + udev + usb printer permissions (SOLVED)
First, thanks Didier Spaier for your reply. You put the light on what was causing the problem.
VirtualBox installed a udev rule file in /etc/udev/rules.d. I didn't think much of it until the notion of a conflict was mentioned. Seems that was the culprit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.