sane, libusb, and permissions
So here is the situation:
Distro: Slack 10.2
kernel 2.6 compiled by me
sane-backends:i also compliled it (1.0.16) beacuse i needed to upgrade its source files with the new plustek (0.50) source files that support my scanner.
As root:
Code:
root@squidov:~# scanimage -L
device `plustek:libusb:003:004' is a Canon LiDE25 USB flatbed scanner
that`s ok
i`ve copied the files "libusbscanner" and "libsane.usermap" to /etc/hotplug/usb.
I`ve tested the "libusbscanner" script by unplgugging and plugging back in my scanner several times. The script does its job.
Code:
root@squidov:/proc/bus/usb/003# ls -al
total 0
dr-xr-xr-x 2 root root 0 2006-05-11 13:28 ./
drwxr-xr-x 5 root root 0 2006-05-11 15:28 ../
-rw-r--r-- 1 root root 43 2006-05-11 13:28 001
-rw-rw---- 1 root scanner 57 2006-05-11 14:04 004
I`ve added my username to the group "scanner", but here is what i get after the command "scanimage -L"
Code:
squiders@squidov:/etc/hotplug/usb$ 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).
again as root (to check if the "libusbscanner" script messed something up:
Code:
root@squidov:~# scanimage -L
device `plustek:libusb:003:004' is a Canon LiDE25 USB flatbed scanner
So, the script does what it should, and still i dont have permissions to the scanner?
wtf?
I`ve also scanned one image as root from the console "scanimage >test.png", and it worked as i thought, but i need full functionality of some of the available GUI-s, and i don`t want to start KDE as root....
Does anyone have any idea what the problem might be? the scanner is the only thing that i`ve left unconfigured :)