From owner-freebsd-questions@FreeBSD.ORG Sat Jul 30 12:02:23 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 6C3EF16A41F for ; Sat, 30 Jul 2005 12:02:23 +0000 (GMT) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (blackend.org [212.11.35.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11EDE43D46 for ; Sat, 30 Jul 2005 12:02:21 +0000 (GMT) (envelope-from marc@blackend.org) Received: from gothic.blackend.org (gothic.blackend.org [192.168.1.203]) by abigail.blackend.org (8.13.3/8.13.3) with ESMTP id j6UC2II4021934; Sat, 30 Jul 2005 14:02:18 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: from gothic.blackend.org (localhost.blackend.org [127.0.0.1]) by gothic.blackend.org (8.13.3/8.13.3) with ESMTP id j6UC2IIV000880; Sat, 30 Jul 2005 14:02:18 +0200 (CEST) (envelope-from marc@gothic.blackend.org) Received: (from marc@localhost) by gothic.blackend.org (8.13.3/8.13.3/Submit) id j6UC2I5A000879; Sat, 30 Jul 2005 14:02:18 +0200 (CEST) (envelope-from marc) Date: Sat, 30 Jul 2005 14:02:18 +0200 From: Marc Fonvieille To: Erik =?iso-8859-1?B?TsO4cmdhYXJk?= Message-ID: <20050730120218.GC596@gothic.blackend.org> References: <20050730110618.GB596@gothic.blackend.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Useless-Header: blackend.org X-Operating-System: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i Cc: questions@freebsd.org, cpghost 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 12:02:23 -0000 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