On Tuesday 09 August 2005 08:05 am, Jean-Luc Coulon (f5ibh) wrote: > Le 09.08.2005 13:51:16, antonio giulio a écrit : > > problems seem for usb-permissions. > > > > xsane and scanimage work from root, but not for user. > > From: /usr/share/doc/libsane/README.Debian.gz I can read that sane add > > a scanner group and so I have launched: adduser giulio scanner -- but > > it now works:( > > > > if I launch 'ls -l /dev/* | grep scanner' I have not found scanner > > groups... maybe a bug in the package? > > I've an Epson 1640 su Photo > It works with libusb so there is no specific device for it > > What says lsusb and then what are the permissions of the device : > > [EMAIL PROTECTED] % lsusb > Bus 005 Device 004: ID 0402:5635 ALi Corp. > Bus 005 Device 001: ID 0000:0000 > Bus 004 Device 001: ID 0000:0000 > Bus 003 Device 001: ID 0000:0000 > Bus 002 Device 004: ID 04b8:010a Seiko Epson Corp. Perfection 1640SU > Bus 002 Device 003: ID 0463:ffff MGE UPS Systems UPS > Bus 002 Device 001: ID 0000:0000 > Bus 001 Device 002: ID 046d:08f0 Logitech, Inc. > Bus 001 Device 001: ID 0000:0000 > > This tells me that the scanner is on 002:004 > > Then I can see iis permissions : > > [EMAIL PROTECTED] % ls -l /proc/bus/usb/002 > total 0 > -rw-r--r-- 1 root root 43 2005-08-09 10:53 001 > -rw-rw---- 1 root nut 52 2005-08-09 14:01 003 > -rw-rw---- 1 root scanner 50 2005-08-09 12:28 004 > > Remark: > If you add yourself to the scanner group, what you tell you have done, > you have to close your X session and logout of any console session, > then restart X. > > In my config file (namely epson.conf), I've only one line with "usb", > this is enough to work with libusb > > > Thanks, > > Giulio > > Regards > > Jean-Luc
The bus:device numbers can change each time you reboot or power off your scanner, so if you don't use a script to reset the permissions, you have to find the usb numbers each time you start up the scanner. you can also use #sane-find-scanner to identify the usb directory numbers (btw, I don't have to restart X to use the scanner after resetting the permissions - I don't know why???) -- Dan Cherry dscherry (@) bellsouth.net Most writers regard the truth as their most valuable possession, and therefore are most economical in its use. Mark Twain (1835-1910)

