so.cl

Rascals are always sociable, and the chief sign that a man has any nobility in his character is the little pleasure he takes in others company. Arthur Schopenhauer


Blacklist a single USB device from Linux

Sometimes you want to blacklist a single USB device from Linux, you can easily do that by creating a udev rule that uses the USB authorization mechanism in the kernel to de-authorize the device; the bus will put the device into suspend mode, and it will never become active.

I put this rule into a new file /etc/udev/rules.d/77-usrobotics.rules, it blacklists any USB device with VendorID 0baf and ProductID 0303:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0baf", ATTRS{idProduct}=="0303", ATTR{authorized}="0"

You can get VendorID and ProductID from the output of lsusb.