From owner-freebsd-questions@FreeBSD.ORG Sat Jul 30 13:42:59 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4096316A41F; Sat, 30 Jul 2005 13:42:59 +0000 (GMT) (envelope-from norgaard@math.ku.dk) Received: from imf.math.ku.dk (fw.math.ku.dk [130.225.103.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D096643D46; Sat, 30 Jul 2005 13:42:58 +0000 (GMT) (envelope-from norgaard@math.ku.dk) Received: from imf.math.ku.dk (localhost [127.0.0.1]) by imf.math.ku.dk (Postfix) with ESMTP id 4310211686; Sat, 30 Jul 2005 15:42:54 +0200 (CEST) Received: from shannon.math.ku.dk (shannon.math.ku.dk [130.225.103.12]) by imf.math.ku.dk (Postfix) with ESMTP; Sat, 30 Jul 2005 15:42:54 +0200 (CEST) Date: Sat, 30 Jul 2005 15:42:54 +0200 (CEST) From: =?ISO-8859-1?Q?Erik_N=C3=B8rgaard?= To: Marc Fonvieille In-Reply-To: <20050730120218.GC596@gothic.blackend.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: questions@freebsd.org Subject: Re: scanimage -L doesn't work as normal user X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2005 13:42:59 -0000 On Sat, 30 Jul 2005, Marc Fonvieille wrote: > On Sat, Jul 30, 2005 at 01:41:20PM +0200, Erik N=C3=B8rgaard wrote: > > 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. According to the man-pages, this should be solved by adding the folowing rules to /etc/devfs.rules: # Allow any user to access uscanner and ugen devices rw add path 'usb0' mode 0666 add path 'ugen*' mode 0666 add path 'uscanner*' mode 0666 I restarted devfs but the devices were created with the wrong permissions when I plugged in the scanner? If I restart devfs after plugging in the scanner permissions are corrected. But I think this is rather annoying - is this intended? no problem report has been filed on this issue... > > $ sane-find-scanner -q > > found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0 > > found USB scanner (vendor=3D0x04b8 [EPSON], product=3D0x0121 [EPSON Sca= nner]) 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. OK, I will update usbdevs and uscanner.c and submit a patch if this makes it work. Yet, I still can't understand howcome I can successfully scan an image as root if scanning is only supposed to work with the uscanner device. Thanks, Erik GnuPG: http://www.locolomo.org/home/norgaard/norgaard.gpg.asc pub 1024D/11D11F9E 2003-08-15 Erik Norgaard Key fingerprint =3D C394 81C4 D137 EEE5 39BE 82D5 3E6B FB3E 11D1 1F9E