I want to disable usb devices based on vendor id in Linux environment. I want to allow only specific USB devices, based on vendor id.
You can make a udev rule that disables devices by default, but enables certain ones by vendor ID. Make a file
And then rules to enable the devices you want to allow (you can use
See "Locking down Linux using UDEV" for more information.
(this might have been better as a comment but I lack the points so expanded it into an answer)
I came here searching for how to allow all usb devices except disabling a specific one by vendor and product id. How to disable a usb sound device with udev answers it for the 0d8c:000c example.
There a discrepancy between the answer and a comment below with
I was expecting dmesg or lusb to report differently but they both show the un-authorized device getting enumerated just as before, but other processes/modules that would have launched automatically appear to not be running which was the desired effect.