Bug 121893

Summary: USB scanners do not have their permissions set by hotplug
Product: [Fedora] Fedora Reporter: W. Michael Petullo <redhat>
Component: hotplugAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 19:02:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description W. Michael Petullo 2004-04-28 21:44:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.6)
Gecko/20040312 Epiphany/1.1.12

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   
        0x00       0x00000000

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
both cases).

Version-Release number of selected component (if applicable):
hotplug-2004_03_11-1

How reproducible:
Always

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. 

Additional info:

Comment 1 W. Michael Petullo 2004-05-03 14:22:36 UTC

*** This bug has been marked as a duplicate of 121511 ***

Comment 2 Red Hat Bugzilla 2006-02-21 19:02:49 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.