Monday, 10 October 2016

Blocking USB Storage drives in Linux

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.



1 comment:

  1. very nice and Informative, preparing for linux Certification, wanted to learn linux operating system,recently joined in http://www.kerneltraining.com/linux-admin-training/, can anyone suggest me some books and videos.

    ReplyDelete