Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jan 2009 14:14:37 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        julian@elischer.org
Cc:        volker@vwsoft.com, yanefbsd@gmail.com, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org, hselasky@c2i.net
Subject:   Re: bin/129963: [newusb] usbconfig(8) fails with misleading error when run as a normal user
Message-ID:  <20090106.141437.96158589.imp@bsdimp.com>
In-Reply-To: <4963C48B.9030005@elischer.org>
References:  <20090106.125218.1159136480.imp@bsdimp.com> <200901062103.28124.hselasky@c2i.net> <4963C48B.9030005@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <4963C48B.9030005@elischer.org>
            Julian Elischer <julian@elischer.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090106.141437.96158589.imp>