Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2005 14:02:18 +0200
From:      Marc Fonvieille <blackend@freebsd.org>
To:        Erik =?iso-8859-1?B?TsO4cmdhYXJk?= <norgaard@math.ku.dk>
Cc:        questions@freebsd.org, cpghost <cpghost@cordula.ws>
Subject:   Re: scanimage -L doesn't work as normal user
Message-ID:  <20050730120218.GC596@gothic.blackend.org>
In-Reply-To: <Pine.LNX.4.40.0507301329150.14957-100000@shannon.math.ku.dk>
References:  <20050730110618.GB596@gothic.blackend.org> <Pine.LNX.4.40.0507301329150.14957-100000@shannon.math.ku.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 30, 2005 at 01:41:20PM +0200, Erik Nørgaard wrote:
> 
> 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?
>

Wrong perms on ugen0, read carefully:
7.6.4 Allowing Scanner Access to Other Users
if you want ugen0 appears with the right permissions once you plug your
scanner.  The current devfs scheme you use (Cf. your previous mail)
should work if you boot directly with your scanner plugged and not if
you plug it later.

> 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=0x04b8 [EPSON], product=0x0121 [EPSON Scanner]) at
>    libusb:/dev/usb0:/dev/ugen0
>
[...]

This is a problem, a USB scanner under FreeBSD should use uscanner(8)
driver nothing else.  I assume your scanner is not seen by uscanner(8),
i.e. not supported or just not defined in uscanner.c
Try to add an entry for your scanner in uscanner.c, rebuild uscanner.ko,
etc. and retry.

Marc



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050730120218.GC596>