Results 1 to 2 of 2
I want to disallow usb port when it is connected...I tried sys/bus/usb/devices/power/level=suspend but still i can see that usb device and have access to that usb device .Please help me ...
- 02-20-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 3
Linux disbale usb port Help *?
I want to disallow usb port when it is connected...I tried sys/bus/usb/devices/power/level=suspend but still i can see that usb device and have access to that usb device .Please help me to stop access to a particular usb device which is connected to Linux system...Also i tried ioperm() but i cannot find usb port no. which is required for it...Also i want to do this by C++ programming
- 02-26-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
Well, one way would be to unload the usb_storage module if you just want to keep people from plugging in USB drives (thumb drives, iPods, cell phones, etc), but let them use printers, etc. Then you can reload it when you need admin access to an external drive.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote