Click here to Skip to main content
15,949,746 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
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.

I also tried ioperm() but I cannot find usb port no. which is required for it. I am trying to do this by C++ programming.
Posted
Updated 20-Feb-11 3:53am
v3
Comments
Sergey Alexandrovich Kryukov 20-Feb-11 0:12am    
Interesting question.
--SA
SameerThigale 20-Feb-11 3:37am    
plz reply soon....plz find a C++ program to disable usb ports as well as cdrom...
Richard MacCutchan 20-Feb-11 9:10am    
I just typed "linux disable usb" into Google and noticed that it returned a number of possible answers.
#realJSOP 20-Feb-11 9:54am    
Yeah - he could have answered his own question by now.
Richard MacCutchan 20-Feb-11 10:18am    
It's amazing how many people can take the trouble to compose a question here, but seem incapable of composing a simple Google query. :(

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900