USB storage is blocking is most import thing in office environment to protect company and client critical data, To disable workstation usb storage is the good solution, To disable USB storage in ubuntu, We need to follow the steps one by one.
Step 1 : First need to create a file by following the commands.
$ sudo nano /etc/modprobe.d/blacklist.conf
if the file already available, so then add given lines.
blacklist usb_storage
blacklist uas
Step 2: Save and exit from the nano editor, Also need to open the /etc/rc.local config file using following commands.
$ sudo nano /etc/rc.local
and add the given lines as below:-
modprobe -r uas
Step 3: Now usb storage configuration is done, to deactivate usb store run given command, now remove your pen drive and run given command.
$ sudo rmmod usb_storage
Step 4: Now your pen drive will not work, to activate usb storage on your ubuntu machine run given command.
$ sudo modprobe usb_storage
No comments:
Post a Comment