Re: rule for old udev version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 15, 2009 at 11:08 AM, Xiaofan Chen<xiaofanc@xxxxxxxxx> wrote:
> On Wed, Jul 15, 2009 at 4:59 PM, Nicola Maggi<nicola.maggi@xxxxxxxxx> wrote:
>> I'm using a Scientific Linux CERN 4 distro which uses udev version
>> 039-10.22. It is quite old but i cannot update it for various reasons.
>>
>> I have a usb device to be configured by udev and a rule provided by
>> the manufacturer to recognize the device and set permissions to
>> everyone.
>>
>> # For FedoraCore 5 and similar:
>> SUBSYSTEM=="usb_device", SYSFS{idVendor}=="151f", MODE="0666"
>>
>> # For FedoraCore 7 and similar:
>> SUBSYSTEM=="usb", ATTRS{idVendor}=="151f", MODE="0666"
>>
>> As stated in the comments the rule is designed for FedoraCore5 which
>> uses a more recent version of udev.
>> My problem is that using this rule in my configuration only root is
>> allowed to use the device(while it works with FC5).
>>
>> I tried to change this rule a bit trying to adapt it to an older
>> version of udev but I didn't get any success.
>>
>
> Maybe udev is not working in this setup and you can try
> hotplug.
>
> Example:
> http://piklab.sf.net/files/libusb_udev_hotplug.txt
> http://piklab.wiki.sourceforge.net/USB+Port+Problems
>
> --
> Xiaofan http://mcuee.blogspot.com
>
Thank you for your help,hotplug worked just fine.
However i have a little question:
in the document you linked there was an example foo.usermap file with
hard coded PID and VID in it.
However I only know a VID for sure.I would need to use some kind of
wildcard, i.e. match any usb device with this PID, no matter what PID
it has.
Is there such a way? or should i create one file for each peripheral?

Thank you again for your help!
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux