Bug 157770 - USB scanner not recognized a boot time
USB scanner not recognized a boot time
Status: CLOSED NEXTRELEASE
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: sane-backends (Show other bugs)
4.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
:
Depends On: 157844 157845
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-14 20:49 EDT by Mark Goldberg
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-29 09:31:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch for /etc/hotplug/usb/libusbscanner (496 bytes, patch)
2005-05-14 20:54 EDT, Mark Goldberg
no flags Details | Diff

  None (edit)
Description Mark Goldberg 2005-05-14 20:49:42 EDT
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:
Comment 1 Mark Goldberg 2005-05-14 20:54:00 EDT
Created attachment 114390 [details]
Patch for /etc/hotplug/usb/libusbscanner
Comment 2 Mark Goldberg 2005-05-14 20:56:59 EDT
Sorry about the long lines in the comments. I will use returns in
the text entry box next time.
Comment 3 Tim Waugh 2005-05-16 10:09:17 EDT
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).
Comment 4 Tim Waugh 2005-05-16 10:10:45 EDT
I have filed bug #157844 and bug #157845 and set them blocking this bug.
Comment 11 Tim Waugh 2005-06-29 09:31:34 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.