From owner-freebsd-usb@FreeBSD.ORG Wed Aug 3 04:26:21 2011 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 5905D1065672 for ; Wed, 3 Aug 2011 04:26:21 +0000 (UTC) (envelope-from freebsd@johnea.net) Received: from mail.johnea.net (johnea.net [70.167.123.7]) by mx1.freebsd.org (Postfix) with ESMTP id 1D70E8FC13 for ; Wed, 3 Aug 2011 04:26:20 +0000 (UTC) Received: from [192.168.100.239] (vhost.johnea.net [192.168.100.239]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.johnea.net (Postfix) with ESMTPSA id 5AFB973F1866 for ; Tue, 2 Aug 2011 21:07:56 -0700 (PDT) Message-ID: <4E38C99B.8090304@johnea.net> Date: Tue, 02 Aug 2011 21:07:31 -0700 From: freebsd@johnea.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Lanikai/3.1.3 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <1523100399.20110803022059@serebryakov.spb.ru> <211179318.20110803023709@serebryakov.spb.ru> <1896008072.20110803033103@serebryakov.spb.ru> In-Reply-To: <1896008072.20110803033103@serebryakov.spb.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: Access rights for specific USB device in /dev? (Was: Ippon UPS over USB (ugen1.2: at usbus1)?) 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: Wed, 03 Aug 2011 04:26:21 -0000 On 2011-08-02 16:30, Lev Serebryakov wrote: > Hello, Freebsd-usb. > You wrote 3 =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD 2011 =EF=BF=BD., 2:37:09: > >> Now I have another question: devfs(8) uses device types or paths to= >> specify access rules for /dev/*, which is bad idea for USB device, as >> it will change path when cable will be re-attached to another port. Is= >> here any method to set owner:group of device node by VID/PID or ID >> string or something like this? > I've tried to add "attach" rule to devd.conf, but here is one > problem: $device-name is "ugen1.2" for example, and "devfs" change > owner and permissions on /dev/ugen1.2, but it is only "symbolic link" > and real device is "/dev/usb/1.2.0" in such case -- as result, owner > and permissions on real device stay unchanged and "blazer_usb" can not > access it again :( > Hi Lev, This has some info on permissions: http://people.freebsd.org/~thierry/nut_FreeBSD_HowTo.txt hth... johnea