Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 38585  / 2 Years ago, tue, august 9, 2022, 12:52:34

I'm admin for one of my college PC with 3 other normal users . If possible I want to restrict other 3 normal users from using USB. I'm using Ubuntu 12.04 .


More From » 12.04

 Answers
0

You can disable USB storage device in Ubuntu, where only root users can only enable it.
Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.



gksudo gedit /etc/modprobe.d/blacklist.conf


enter image description here



When it opens add blacklist usb_storage as the last line, then with the command below
open the rc.local file



gksudo gedit /etc/rc.local


When it opens, add modprobe -r usb_storage before the line exit 0



enter image description here



Now go ahead and reboot your system.



To mount, open a Terminal and use the following command.



sudo modprobe usb_storage


To Unmount the USB device, just right click on the device in file manager, and choose safley remove, or Unmount device, and run



sudo rmmod usb_storage


In Terminal.



Source: How to Disable and Enable USB Device


[#37406] Tuesday, August 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ovierman

Total Points: 445
Total Questions: 108
Total Answers: 111

Location: Libya
Member since Fri, Oct 30, 2020
4 Years ago
;