[sane-devel] USB Scanner problem

Cory Foy usergroup@cornetdesign.com
Wed, 14 Jul 2004 06:21:42 -0500


Eelke Klein wrote:
> --- Cory Foy <usergroup@cornetdesign.com> wrote:
> 
>>Highly insecure, but I got Xsane to scan by changing 
>>/etc/hotplug/usb/libusbscanner to set permissions at 0777
>>instead of 
>>0660 (which is why the permissions were changing on me!).
>>
> 
> Normally in Gentoo the group will be changed to scanner. If you
> add any user who needs access to the scanner to the scanner
> group the permission of 660 will be fine.
> 
> Eelke

That's what I thought. My user is added to the scanner group:

foyc@dilbert foyc $ cat /etc/group | grep scanner
scanner:x:440:foyc

and that's the group /proc/bus/usb/001/003 is part of:

foyc@dilbert foyc $ cd /proc/bus/usb/001
foyc@dilbert 001 $ ls -l
total 0
-rw-r--r--    1 root     root           43 Jul 13 22:36 001
-rw-r--r--    1 root     root          220 Jul 13 22:36 002
-rwxrwxrwx    1 root     scanner        57 Jul 13 22:36 003

But if the permissions are not set wide open, I can't access the scanner 
as my user.

Cory