Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .