Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Aug 2011 21:07:31 -0700
From:      freebsd@johnea.net
To:        freebsd-usb@freebsd.org
Subject:   Re: Access rights for specific USB device in /dev? (Was: Ippon UPS over	USB (ugen1.2: <Cypress Semiconductor> at usbus1)?)
Message-ID:  <4E38C99B.8090304@johnea.net>
In-Reply-To: <1896008072.20110803033103@serebryakov.spb.ru>
References:  <1523100399.20110803022059@serebryakov.spb.ru>	<211179318.20110803023709@serebryakov.spb.ru> <1896008072.20110803033103@serebryakov.spb.ru>

next in thread | previous in thread | raw e-mail | index | archive | help


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




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