Earlier we have covered how to block usb storage device on windows. Now we will see how to block usb storage on linux.

To disable run following commands:

echo 'install usb-storage : ' >> /etc/modprobe.conf 
mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /root

To enable run following commands:

mv /root/usb-storage.ko /lib/modules/$(uname -r)/kernel/drivers/usb/storage/
modprobe usb-storage
Disabling USB storage in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *