How to block USB Pen Drive in Linux.

Asked By 0 points N/A Posted on -
qa-featured

I am a Network Administrator of a Lab which has more than 8 computers of Susi Linux and Debian Linux. I want to Prevent Users from Accessing USB Storage Media like USB HDD, USB Flash Memory, USB Card Reader and USB Mobile Phone Data Cable. But At the Same time I want to Access to access my USB Storage on Every PC. Is it Possible to block USB Pen Drive in Linux PC

SHARE
Answered By 5 points N/A #168497

How to block USB Pen Drive in Linux.

qa-featured

Hi Strain stive,

Yes you can block USB Pen Drive in Linux PC. Just in few steps:

First of all you need to disable USB storage devices in Susi Linux and Debian Linux. Type the following command:

# echo 'install usb-storage : ' >> /etc/modprobe.conf

You can also remove USB Storage driver, enter:

# ls /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
# mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko /root

I hope it will helpful. Thanks!

Regards,

Related Questions