Blocking USB Storage drives in Linux
Blocking
usb stick
STEP 1: Create and edit a file "no-usb" as below.
#vi /etc/modprobe.d/no-usb
STEP 2: Add the following
lines to the above created file.
Install usb-storage /bin/true
STEP 3: Save and exit using
ESC :wq
STEP 4: Reboot the computer and try inserting USB Mass Storage drive
USB blocked
To unblock.
Remove the added line from the file "no-usb".
Refresh the system. It should be unblocked.