Red Hat Bugzilla – Bug 121893
USB scanners do not have their permissions set by hotplug
Last modified: 2014-03-16 22:44:38 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.6)
Description of problem:
Hotplug correctly sets the permissions of USB devices (ie:
/proc/bus/usb/001/*) when I plug in my digital camera. Hotplug gives
read and write permissions to the console owner.
However, the same is not true for scanners. Since the USB scanner
kernel module was dropped some time ago in favor of libusb, scanners
should be handled like digital cameras.
This is how I got my scanner to work right:
I added the following two lines to /etc/hotplug/usb.usermap (copied
from /etc/hotplug/usb.distmap -- the map for old kernel modules):
# Umax Astra 2200
scanner 0x0003 0x1606 0x0230 0x0000 0x0000
0x00 0x00 0x00 0x00 0x00
Then I copied /etc/hotplug/usb/usbcam to /etc/hotplug/scanner and
modified the script to reference scanners instead of cameras (actually
a slight modification of the same script could probably be used in
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Plug in a USB scanner. Notice that the corresponding device in
/proc/bus/usb does not have its permissions set so that the
console-owning user has access.
*** This bug has been marked as a duplicate of 121511 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.