Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2005 13:41:20 +0200 (CEST)
From:      =?ISO-8859-1?Q?Erik_N=C3=B8rgaard?= <norgaard@math.ku.dk>
To:        Marc Fonvieille <blackend@freebsd.org>
Cc:        questions@freebsd.org, cpghost <cpghost@cordula.ws>
Subject:   Re: scanimage -L doesn't work as normal user
Message-ID:  <Pine.LNX.4.40.0507301329150.14957-100000@shannon.math.ku.dk>
In-Reply-To: <20050730110618.GB596@gothic.blackend.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 30 Jul 2005, Marc Fonvieille wrote:

> On Sat, Jul 30, 2005 at 12:14:25PM +0200, Erik N=C3=B8rgaard wrote:
> > On Sat, 30 Jul 2005, cpghost wrote:
> >
> > > > Then as ordinary user:
> > > > $ sane-find-scanner -q
> > > > found USB scanner (vendor=3D0x04b8 [EPSON], product=3D0x0121 [EPSON
> > > > Scanner]) at libusb:/dev/usb0:/dev/ugen0
> > > > $ scanimage -L
> > > >
> > > > No scanners were identified.
> > >
> > > This is normally a problem with permissions. You could set them
> > > to 0666 in /etc/devfs.conf, and [re]start devfs with
> > > # /etc/rc.d/devfs start
> >
> > This was also what I thought, but I can't seem to get it right:
> >
> > In my devfs.conf I have:
> > # Allow all users to use the scanner
> > perm    ugen0  0666
> >
> > perm    usb    0666
> > perm    usb0   0666
> > perm    usb1   0666
> >
> > But when I plugin the scanner, ugen0 and ugen0.* has permissions
> > crw-r--r--
> >
> [...]
>
> You have to use uscanner not ugenX
> You should read the Handbook section related to the image scanners:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/scanners.html

Thanks, I did read it. But if that is the problem, then please
explain why I can scan as root but not as ordinary user?

When I create a link uscanner0 -> ugen0 that link gets permissions
lrwxr-xr-x and I can't change those. I then run as normal user

$ sane-find-scanner -q
found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
found USB scanner (vendor=3D0x04b8 [EPSON], product=3D0x0121 [EPSON Scanner=
]) at
   libusb:/dev/usb0:/dev/ugen0

So you see, it's not that I can't find the scanner. It is beyond
me to understand why sane-find-scanner works as documented but
scanimage don't.

According to documentation this scanner uses the snapscan backend,
in snapscan.conf I have:

firmware /usr/local/etc/sane.d/Esfw41.bin
# If not automatically found you may manually specify a device name.
# For USB scanners also specify bus=3Dusb, e.g.
# /dev/usb/scanner0 bus=3Dusb

#/dev/uscanner0 bus=3Dusb
usb /dev/uscanner0

I have tried specifying the usb-scanner, both as written in the
handbook and as suggested in the file and without any entries. No
change.

I don't think this file is read, because that would probably
require that scanimage first identify the backend.

Thanks, Erik

GnuPG: http://www.locolomo.org/home/norgaard/norgaard.gpg.asc
pub  1024D/11D11F9E 2003-08-15 Erik Norgaard <norgaard@locolomo.org>
     Key fingerprint =3D C394 81C4 D137 EEE5 39BE  82D5 3E6B FB3E 11D1 1F9E




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.40.0507301329150.14957-100000>