Libusb devices only accessable as root
Hey guys... i used to use the kernel scanner driver in kernel 2.4. allowing normal users to access the scanner was as easy as chmod 666 /dev/scanner0.
however now i am using the libusb interface with kernel 2.6 (gt68xx scanner) ohh, yeah it IS a usb scanner... anyways... here's the confusing part... sane-find-scanner detects my scanner if ran as root, or a normal user... however XSANE and KOOKA only detect the scanner if they are run as root.. what do i need to chmod ? how do i allow all users access to the scanner ? ive already chmod 777 the scanner firmware. ive added my user to the /etc/groups sections "usb" and "scanner" not sure what else to do ? any ideas ? thankyou. |
fixed it.... lsusb gave me the address of the usb scanner. then i chmod 666'ed the apropriate /proc/bus/usb files.
|
There's a script I use to make the devices in /proc/bus/usb/001 executable. I don't know how Gentoo works, but it should be similar. The script comes with sane-backends. Mine is in /home/sane-backends-1.0.14/tools/hotplug, there's a readme file too.
This is the script: Code:
#!/bin/sh |
Looks like you beat me to it. But keep in mind that changing the permissions is only temporary - they will be reset to default at the next boot, and you'll need to change them again (the device entries themselves are also renamed). The sane script takes care of it automatically
|
All times are GMT -5. The time now is 10:46 AM. |