From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Red Hat/1.0.3-1.4.1 Firefox/1.0.3 Description of problem: At boot time, no one is logged into the console, so permissions are not set correctly by /etc/hotplug/usb/libusbscanner. It is necessary to unplug and replug in the scanner before it can be used by root only. It is suggested to change /etc/hotplug/usb/libusbscanner similar to the attached patch (after creating a group scanner consisting of selected users) to allow group scanner to access the scanner. This is very similar to bug #122595. The patch changes two things. It sets the default owner to root if noone is logged into the console, which is always the case at boot time, and it allows selected users other than root to use the scanner. It works at boot time and also if the scanner is disconnected and reconnected. Version-Release number of selected component (if applicable): sane-backends-1.0.14-6 How reproducible: Always Steps to Reproduce: 1. Boot the system. 2. Attempt to use the scanner as a regular user. Actual Results: Scanner is not available. Expected Results: Scanner should be available. Additional info:
Created attachment 114390 [details] Patch for /etc/hotplug/usb/libusbscanner
Sorry about the long lines in the comments. I will use returns in the text entry box next time.
I think this is unrelated to bug #122595. Instead, I think this is bug #121511. Work required: 1. pam package: add argument to pam_console_apply to restrict to specific files (as in pam-0.78-2) 2. hotplug package: fix usb remove events (as in hotplug-2004_04_01-10) 3. change libusbscanner script to match (as in sane-backends-1.0.15-8) Your own patch is insufficient to fix the problem, as it mandates further set-up on the part of the user (setting up a 'scanner' group etc).
I have filed bug #157844 and bug #157845 and set them blocking this bug.
This issue is not severe enough to warrant an updated package on its own. However, future Red Hat Enterprise Linux releases will contain the fix.