From owner-freebsd-stable@FreeBSD.ORG Sun Nov 20 18:26:45 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0131D16A41F for ; Sun, 20 Nov 2005 18:26:44 +0000 (GMT) (envelope-from hk@alogis.com) Received: from alogis.com (firewall.solit-ag.de [212.184.102.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8022443D6D for ; Sun, 20 Nov 2005 18:26:39 +0000 (GMT) (envelope-from hk@alogis.com) Received: from alogis.com (localhost [127.0.0.1]) by alogis.com (8.13.1/8.13.1) with ESMTP id jAKIQcSM041734; Sun, 20 Nov 2005 19:26:38 +0100 (CET) (envelope-from hk@alogis.com) Received: (from hk@localhost) by alogis.com (8.13.1/8.13.1/Submit) id jAKIQcvS041733; Sun, 20 Nov 2005 19:26:38 +0100 (CET) (envelope-from hk) Date: Sun, 20 Nov 2005 19:26:38 +0100 From: Holger Kipp To: Roland Smith Message-ID: <20051120182638.GA41518@intserv.int1.b.intern> References: <20051120131624.GB35164@intserv.int1.b.intern> <20051120140422.GA26681@slackbox.xs4all.nl> <20051120163736.GA39037@intserv.int1.b.intern> <20051120174754.GA33044@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051120174754.GA33044@slackbox.xs4all.nl> User-Agent: Mutt/1.4.2.1i Cc: stable@freebsd.org Subject: Re: FBSD-6 usb/scanner-access-rights X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2005 18:26:45 -0000 On Sun, Nov 20, 2005 at 06:47:54PM +0100, Roland Smith wrote: > On Sun, Nov 20, 2005 at 05:37:36PM +0100, Holger Kipp wrote: > > Dear Roland, > > > > Is there an easy way to name the devices a user might > > > > be allowed to access rw, without compromising the system? > > > > I don't want to give operator group to these users, > > > > and I don't want to blindly allow access to some > > > > da- or pass-devices where I cannot determine the order > > > > of numbering easily. > > ah, I had the entry > > "add path 'uscanner*' mode 0660 group usb" > > missing in the devfs.rules-file > > but this still does not help... > > > > uscanner0 is here: > > uscanner0: EPSON EPSON Scanner, rev 1.10/1.00, addr 2 > > > > sane-find-scanner has the following to say: > > found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0 > > Doesn't matter that you get "UNKNOWN". It _will_ work with sane without > access to /dev/usb*. It does here. This is an Epson Perfection 1260. Don't ask what the 'Perfection' stands for. Anyway, this is in fact a Plustek, so I have to add the following to /usr/local/etc/sane.d/plustek.conf: -[usb] +[usb] 0x04B8 0x011D +device /dev/uscanner0 I need vendor and product id to get this working. Without getting this info, eg scanimage -L will complain that it couldn't find a scanner, etc. only with /dev/usb* set to root:usb, I will get %scanimage -L device `plustek:/dev/uscanner0' is a Epson Perfection 1260/Photo USB flatbed scanner Regards, Holger Kipp