Now, let’s see how to disable USB mass storage device on Redhat Linux (RHEL 5.2 particularly; should be applicable to other Linux distributions too):
- Login as root,
- Open /etc/modprobe.d/no-usb for edit (create this file if it’s not exists),
- Append this line to the no-usb file (in step-2) and save it:
install usb-storage /bin/true
Reboot server to enforce change. To confirm USB mass storage support has disabled, just execute
lsmod | grep -i usb
or try plug in USB drive to confirm.