Blocking USB Ubuntu

SaSkillerSaSkiller Member Posts: 337 ■■■□□□□□□□
Hi all.

Recently installed Ubuntu on a system, and I want to disable USB access on the system, i'll probably end up disabling it in the BIOS, but in the OS I was trying to and following the instructions here: 12.04 - How do I prevent standard users from using the USB ports? - Ask Ubuntu

But it doesn't seem to work. When I reboot and insert a USB device, it pops up in the system and opens.

Thoughts?
OSWP, GPEN, GWAPT, GCIH, CPT, CCENT, CompTIA Trio.

Comments

  • VeritiesVerities Member Posts: 1,162
    Create a file under the mod prob directory that tells the shell to do nothing when a usb storage device is inserted:

    vi /etc/modprobe.d/disableusb.conf

    install usb-storage /bin/true


    Reboot and test. Let me know if that works out for you since I know it works on RHEL systems, but it should work just the same for Ubuntu.
Sign In or Register to comment.