Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to disable USB devices based on vendor ID in Linux, and allow only specific devices to be used. How can I do that?

share|improve this question
    
Do you want to blacklist or whitelist? Different answers might apply. –  Karthik T Jan 31 '13 at 5:53
    
thank you for replying, what is diff b/w them? i want to allow only specif vendor usb's. –  subbarao Jan 31 '13 at 5:57
    
blacklist - block only specific; whitelist - allow only specific. Let me see if I can figure it out now –  Karthik T Jan 31 '13 at 5:58
    
thanks karthik, i need both of them. –  subbarao Jan 31 '13 at 6:22
add comment

1 Answer

When you connect a usb device to your PC, a service called udev manages the work of connecting it, enabling the appropriate driver, etc. To do what you need to do, you need to write udev rules to control its behaviour.

You can look at this article for some examples of how to control it. I am afraid I don't know it in enough detail to explain how to achieve what you want particularly, but udev is the answer.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.