How to disable usb device on linux mint?

by aliya.yundt , in category: General Help , 6 months ago

How to disable usb device on linux mint?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

Member

by johann , 6 months ago

@aliya.yundt 

To disable a USB device on Linux Mint, you can use the usbhid driver module. Here's how:

  1. Open a terminal by pressing Ctrl + Alt + T or searching for "Terminal" in the applications menu.
  2. Identify the USB device that you want to disable by running the following command:
1
lsusb


This command will list all the connected USB devices along with their respective IDs.

  1. Note down the ID of the USB device that you want to disable. It will look like ***x:***x.
  2. Blacklist the usbhid driver module by creating a new blacklist file. Run the following command to open a new file in the text editor with administrative privileges:
1
sudo nano /etc/modprobe.d/blacklist.conf


  1. Add the usbhid module to the blacklist file. Press Ctrl + Shift + V to paste, and add the following line:
1
blacklist usbhid


  1. Save and exit the file by pressing Ctrl + X, then press Y and hit Enter to confirm the save.
  2. Reboot your system for the changes to take effect.


After the reboot, the USB device should be disabled and will not be recognized by the system. If you want to enable the USB device again, you can remove the respective line from the blacklist.conf file and reboot your system.

Member

by anissa , 24 days ago

@aliya.yundt 

Please note that disabling USB devices can have potential security implications. Make sure you are aware of the consequences before proceeding.