From owner-freebsd-questions@FreeBSD.ORG Sat Jul 30 10:14:34 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 8DD7016A41F for ; Sat, 30 Jul 2005 10:14:34 +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 DBB4743D48 for ; Sat, 30 Jul 2005 10:14:29 +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 3A73B12005; Sat, 30 Jul 2005 12:14:25 +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 12:14:25 +0200 (CEST) Date: Sat, 30 Jul 2005 12:14:25 +0200 (CEST) From: =?ISO-8859-1?Q?Erik_N=C3=B8rgaard?= To: cpghost In-Reply-To: <20050729232511.GA3040@epia2.farid-hajji.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 10:14:34 -0000 On Sat, 30 Jul 2005, cpghost wrote: > > Then as ordinary user: > > $ sane-find-scanner -q > > found USB scanner (vendor=0x04b8 [EPSON], product=0x0121 [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-- sane-find-scanner doesn't show any scanners. Then I manually set the permissions on ugen0 to give write permissions to all, and sane-find-scanner finds the scanner, but scanimage still doesn't work. I would expect either both or none to work. To investigate furhter, I ran sane-find-scanner verbose: This is sane-find-scanner from sane-backends 1.0.15 searching for SCSI scanners: checking /dev/scanner... failed to open (Invalid argument) checking /dev/scanner0... failed to open (Invalid argument) ... searching for USB scanners: checking /dev/uscanner... failed to open (Invalid argument) checking /dev/uscanner0... failed to open (Invalid argument) ... device 0x04b8/0x0121 is not configured that is when there is no write permissions to ugen0, setting write permissions on ugen0 the last device line becomes found USB scanner (vendor=0x04b8 [EPSON], product=0x0121 [EPSON Scanner]) at libusb:/dev/usb0:/dev/ugen0 Unfortunately, running scanimage verbose doesn't show anything about probing for devices. Thanks, Erik GnuPG: http://www.locolomo.org/home/norgaard/norgaard.gpg.asc pub 1024D/11D11F9E 2003-08-15 Erik Norgaard Key fingerprint = C394 81C4 D137 EEE5 39BE 82D5 3E6B FB3E 11D1 1F9E