From owner-freebsd-usb@FreeBSD.ORG Tue Jan 6 21:17:43 2009 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF37A106564A; Tue, 6 Jan 2009 21:17:43 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 9CF3A8FC08; Tue, 6 Jan 2009 21:17:43 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id n06LEOGC039806; Tue, 6 Jan 2009 14:14:24 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 06 Jan 2009 14:14:37 -0700 (MST) Message-Id: <20090106.141437.96158589.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <4963C48B.9030005@elischer.org> References: <20090106.125218.1159136480.imp@bsdimp.com> <200901062103.28124.hselasky@c2i.net> <4963C48B.9030005@elischer.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: volker@vwsoft.com, yanefbsd@gmail.com, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2009 21:17:44 -0000 In message: <4963C48B.9030005@elischer.org> Julian Elischer writes: : Hans Petter Selasky wrote: : > On Tuesday 06 January 2009, M. Warner Losh wrote: : >> In message: <200901062024.31100.hselasky@c2i.net> : >> : Do it like this for example: : >> : : >> : usbconfig -u xxx -a xxx set_owner xxx set_perm 660 : >> : : >> : This won't have no effect at all with USB2: : >> : > [localrules=10] : >> : > add path 'uscanner*' mode 0660 : >> : > : >> : > to make it work. /dev/usb* in old usb allow listing w/o privs... : >> : >> That's bad. I'm sorry, but having to do something weird to get the : >> scanner to work every time isn't good design. : > : > I don't understand. If you are lazy you do: : > : > usbconfig -u xxx set_perm 777 : : how about using the standard devd stuff? You mean devfs. : why invent a completely new way of doing things for USB? Exactly my point. I can paper over this with devd, but that's really not a good way to roll long term. Warner