Friday, August 19, 2011

How to block pen drive in linux?

The easiest way to disable usb storage device in linux is create following file


/etc/modprobe.d/no-usb

And add following line inside the file

install usb-storage /bin/true

Cheers usb-storage device blocked for your linux system now. I done this on my RHEL 5.4 system.