I am using Ubuntu 10.10. I want to disable my
usb port due to some resign.
so how i can disable my
usb port and after that how i can enable it..
You could try this, although may cause other issues:
Just rename storage to storage-old:
mv /lib/modules/3.2.0-35-generic-pae/kernel/drivers/usb/storage /lib/modules/3.2.0-35-generic-pae/kernel/drivers/usb/storage-old
You're not being very specific.
List the USB modules currently loaded:
You can unload the modules with
Be carefull, you can easily lock yourself out if you're using USB keyboard/mouse and remove the usbhid module.
This is not strictly an Ubuntu or Linux solution, but you could go into the bios of the computer and disable the usb ports from there.
Some computers will allow you to select which ports to disable (HP).
You can then also password protect the bios to ensure they are not just switched on again.
You may also want to pay attention to what usb input devices (keyboard / mouse) you have before disabling usb.