RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 893003 - sane - regular user has not permitted scan operations
Summary: sane - regular user has not permitted scan operations
Keywords:
Status: CLOSED DUPLICATE of bug 905143
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: hplip
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-08 12:47 UTC by Iveta Wiedermann
Modified: 2013-05-13 14:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-13 14:15:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Iveta Wiedermann 2013-01-08 12:47:14 UTC
Description of problem:
When trying to 'scanimage -L' as nonroot user with usb scanner plugged in, no scanner is found and log says 'Operation not permitted'

# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 04b3:4485 IBM Corp. Serial Converter
Bus 003 Device 003: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader
Bus 001 Device 005: ID 413c:1003 Dell Computer Corp. Keyboard Hub
Bus 001 Device 006: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 007: ID 413c:2010 Dell Computer Corp. Keyboard
Bus 003 Device 004: ID 0a5c:2110 Broadcom Corp. Bluetooth Controller
Bus 001 Device 010: ID 03f0:3812 Hewlett-Packard 

I tried like a nonroot 
# scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


# getfacl /dev/bus/usb/001/010 
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/010
# owner: root
# group: root
user::rw-
group::rw-
group:lp:rw-
mask::rw-
other::r--


then I set :
# chmod a+rwx /dev/bus/usb/001/010 

and again like a user: scanimage -L
device `hpaio:/usb/Officejet_Pro_8500_A909a?serial=CN08H5R07S' is a Hewlett-Packard Officejet_Pro_8500_A909a all-in-one


Version-Release number of selected component (if applicable):
udev-147-2.42.el6
cups-1.4.2-48.el6_3.3
libusb1-1.0.9-0.6.rc1.el6
sane-backends-1.0.21-3.el6

How reproducible:
100%

Steps to Reproduce:
1. Plug some usb scanner
2. Run scanimage -L to list available scanners
3. See /var/log/messages
  
Actual results:
No scanner is found and 'Operation not permitted' can be found in log

Expected results:
Scanner is found and no permission problems are mentioned in the log

Additional info:

Log:

Jan  8 10:50:17 localhost python: io/hpmud/dot4.c 121: unexpected DOT4CreditRequest: cmd=4, hid=4, pid=4, maxcredit=65535
Jan  8 10:50:35 localhost python: io/hpmud/hpmud.c 342: device_cleanup: device uri=hp:/usb/Officejet_Pro_8500_A909a?serial=CN08H5R07S
Jan  8 10:50:35 localhost python: io/hpmud/hpmud.c 354: device_cleanup: close device dd=1...
Jan  8 10:50:35 localhost python: io/hpmud/hpmud.c 356: device_cleanup: done closing device dd=1
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 2041: invalid product id string ret=-1
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 2046: invalid serial id string ret=-1
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:53:17 localhost xsane: io/hpmud/musb.c 2051: invalid manufacturer string ret=-1
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 2041: invalid product id string ret=-1
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 2046: invalid serial id string ret=-1
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:32 localhost xsane: io/hpmud/musb.c 2051: invalid manufacturer string ret=-1
Jan  8 10:54:47 localhost dbus: avc:  received setenforce notice (enforcing=0)
Jan  8 10:54:47 localhost dbus: avc:  received setenforce notice (enforcing=0)
Jan  8 10:54:47 localhost dbus: avc:  received setenforce notice (enforcing=0)
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 2041: invalid product id string ret=-1
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 2046: invalid serial id string ret=-1
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:54:54 localhost xsane: io/hpmud/musb.c 2051: invalid manufacturer string ret=-1
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 2041: invalid product id string ret=-1
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 2046: invalid serial id string ret=-1
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 140: unable get_string_descriptor -1: Operation not permitted
Jan  8 10:55:33 localhost scanimage: io/hpmud/musb.c 2051: invalid manufacturer string ret=-1

Comment 4 Tim Waugh 2013-05-13 14:15:37 UTC

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


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