> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How To Disable USB Ports In Ubuntu [Quick Tip]
- URL: https://itsfoss.com/how-to-disable-usb-ports-in-ubuntu/
- Published: 2013-02-23T23:00:52.000Z
- Updated: 2023-01-11T09:56:03.000Z
- Author: Abhishek Prakash
- Tags: Linux, Ubuntu, #Import 2022-12-26 08:27

![USB Block](https://itsfoss.com/content/images/wordpress/2013/02/no-usb-block.png)

Nothing is safe in Cyber world. Even a safe and secure Linux OS like [Ubuntu can be hacked in less than 5 minutes](https://itsfoss.com/how-to-hack-ubuntu-password/ "How To Hack / Reset / Recover Ubuntu Password"). 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.