Pin It
Powered By:
Android Advice

How To Disable USB Ports In Ubuntu [Quick Tip]

USB BlockNothing is safe in Cyber world. Even a safe and secure Linux OS like Ubuntu can be hacked in less than 5 minutes. When I was an intern at Mancala Networks, I was working on endpoint protection. One of the things which we wanted to implement in endpoint protection was to disable the USB port. While Linux is (almost) secure from viruses, data theft can occur by means of a removable media.

In this post we’ll see a quick way to disable USB ports in Ubuntu. To this quickly, add anew line in blacklist.conf file. You can use a command like this:

sudo echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf

From next time onwards, no one will be able to use the USB ports. To re-enable the use of USB port, remove the added line from blacklist.conf.

How did you find this quick tip to block USB port in Ubuntu? Do let me know.

About Abhishek

I am Abhishek Prakash, 'creator' of It's F.O.S.S. I have a Masters in Communication System Engineering. I am an avid Linux lover and Open Source enthusiast. I use Ubuntu and believe in sharing knowledge. Feel free to circle me on Google Plus and

It's FOSS is running on Wordpress SEO Plugin by SEOPressor