Hi friends,
I wanna know how to block USB devices in my RedHat flavor Operating system.
regards,
Prakash
modprobe -r usb_storage
That won't stop the module getting autoloaded, though. Try
echo 'blacklist usb_storage' >> /etc/modprobe.d/blacklist.conf
...or wherever your blacklist.conf is.
Try the following command at your risk
sudo mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /.usb-storage.ko
This won't load the USB device when rebooted.