Andrei Popescu wrote:
On Sat, Apr 26, 2008 at 03:59:40PM -0700, Marc Shapiro wrote:
Still not working as normal user. It works for root, however, without
needing the node in /dev/.static/dev. I hate to reboot. I like the long
uptime but we had a power outage recently, so I guess that really isn't
much of an issue right now.
A reboot was not needed in my case. Let's check some permissions (this
is on my parents lenny where the scanner is installed):
$ ls -l /usr/bin/xsane # though I doubt these will be wrong
-rwxr-xr-x 1 root root 642500 2008-04-11 20:24 /usr/bin/xsane
$ ls -l /dev/bus/usb/001/
total 0
crw-rw---- 1 root root 189, 0 2008-04-27 11:57 001
crw-rw-r-- 1 root scanner 189, 1 2008-04-27 11:57 002
It looks like it is a permissions problem in /dev/bus/usb, but the udev
rule should take care of that, right? I have included output from
dmesg, listings from /dev/bus/usb, and excerpts from
/etc/udev/rules.d/libsane.rules.
From dmesg (so the scanner is at /dev/bus/usb/001/009?):
usb 4-1: new high speed USB device using ehci_hcd and address 9
usb 4-1: configuration #1 chosen from 1 choice
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 9 if 1
alt 0 proto 2 vid 0x04B8 pid 0x0838
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 9
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 7:0:0:0: Direct-Access EPSON Stylus Storage 1.00 PQ: 0 ANSI: 2
sd 7:0:0:0: [sda] Attached SCSI removable disk
But none of the devices in /dev/bus/usb are in groups scanner. All of
them have user root:root.
[EMAIL PROTECTED]:~$ ls /dev/bus/usb/001
total 0
crw-rw-r-- 1 root root 189, 0 Apr 24 13:02 001
[EMAIL PROTECTED]:~$ ls /dev/bus/usb/002
total 0
crw-rw-r-- 1 root root 189, 128 Apr 24 13:02 001
[EMAIL PROTECTED]:~$ ls /dev/bus/usb/003
total 0
crw-rw-r-- 1 root root 189, 256 Apr 24 13:02 001
[EMAIL PROTECTED]:~$ ls /dev/bus/usb/004
total 0
crw-rw-r-- 1 root root 189, 384 Apr 24 13:02 001
crw-rw-r-- 1 root root 189, 392 Apr 26 15:56 009
Excerpted from /etc/udev/rules.d/libsane.rules:
# This file was automatically created based on description files (*.desc)
# by sane-desc 3.2 from sane-backends 1.0.18 on Mon Jan 8 19:41:55 2007
#
# udev rules file for supported USB devices
#
# To add a USB device, add a rule to the list below between the SUBSYSTEM...
# and LABEL... lines.
#
# To run a script when your device is plugged in, add RUN+="/path/to/script"
# to the appropriate rule.
#
# The following list already contains a lot of scanners. If your scanner
# isn't mentioned there, add it as explained above and mail the entry to
# the sane-devel mailing list ([EMAIL PROTECTED]).
#
ACTION!="add", GOTO="libsane_rules_end"
SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"
..
..
..
# Epson CX-7300 | CX-7400 | Epson DX-7400
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="0838", MODE="664",
GROUP="scanner"
..
..
..
--
Marc Shapiro
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]