access to usb device denied in latest hardy package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sane-backends (Debian) |
Fix Released
|
Unknown
|
|||
sane-backends (Ubuntu) |
Fix Released
|
High
|
Martin Pitt |
Bug Description
luis@trinity:
[sanei_debug] Setting debug level of canon630u to 12.
[canon630u] sane_init: version_code != 0, authorize != 0
[canon630u] sane_init: SANE Canon630u backend version 1.0.1 from sane-backends 1.0.18-cvs
[canon630u] reading configure file canon630u.conf
[canon630u] attach_
[canon630u] attach_scanner: libusb:004:004
[canon630u] attach_scanner: opening libusb:004:004
[canon630u] CANON_open_device: `libusb:004:004'
[canon630u] CANON_open_device: couldn't open device `libusb:004:004': Access to resource has been denied
[canon630u] ERROR: attach_scanner: opening libusb:004:004 failed
[canon630u] finished reading configure file
[canon630u] sane_get_
scanimage: no SANE devices found
[canon630u] sane_exit
45-libsane.rules has been removed in this package, restoring file from earlier package does not seem to provide a workaround. Using 1.0.19~
Related branches
Changed in sane-backends: | |
assignee: | nobody → pitti |
importance: | Undecided → High |
status: | New → In Progress |
Changed in sane-backends: | |
milestone: | none → hardy-alpha-5 |
milestone: | hardy-alpha-5 → ubuntu-8.04-beta |
Changed in sane-backends: | |
status: | Unknown → New |
Changed in sane-backends: | |
status: | New → Fix Released |
Bug confirmed in Hardy Heron Alpha 3
Only root has access to scanners connected to the USB port!! So if you use "SUDO sane-find-scanner" "SUDO scanimage -L" and "SUDO scanimage --format tiff --resolution 300 -x 215 -y 297 > image" - or something like that - everything works fine. This is very annoying since my user name is present in the scanner group and full access has been granted to the USB subsytem in /etc/udev/ rules.d/ 40-permissions. rules:
# USB devices (usbfs replacement) =="usb_ device" , MODE="0777" ="usb_device" , MODE="0777"
SUBSYSTEM=="usb", ENV{DEVTYPE}
SUBSYSTEM=
As already mentioned above, the odd things is that the file 45-libsane-rules isn't present in /etc/udev/rules.d anymore, but there are two files in /etc/modprobe.d/ - libsane and blacklist-scanner - with the following content:
blacklist scanner
blacklist hpusbscsi
Soooo, all the scanner modules are blacklisted, and there are no udev rules for libsane ... but root still has access to the scanner. Can anyone explain this?