Customers might like to disable the USB thumbdrive on the CA API Gateway hardware appliance for security reason but would like to keep the USB connectivity for Keyboard/Mouse.
CA API Gateway hardware appliance 9.x running on Oracle Server X5-2.
The following solution involves blacklisting a kernel module and unloading it upon boot.
This is the safest solution that we are aware of as it can be reversed, quickly, with no negative effects.
Some instructions say to move the kernel module file but this creates additional problems.
Even-though this is generally unsupported thing to do, but it would not be dangerous.
These instructions are RHEL/CentOS6 specific:
The following instructions will disable usb storage but will not affect simple devices such as keyboards and mouse.
Please note that a reimage of a hardware appliance may modify these settings.
This is the safest method possible as it is not possible to only disable USB Storage on a BIOS level and you do not want to do this via GRUB during boot.
echo 'blacklist usb_storage' > /etc/modprobe.d/blacklist-usb_storage.conf
echo 'modprobe -r usb_storage' > /etc/rc.local
Remove 'modprobe -r usb_storage' from /etc/rc.local