Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1608  / 2 Years ago, wed, january 26, 2022, 10:12:42

I want to disable a particular USB storage device (a sandisk flash drive). I read somewhere that you can use the .config file. How do i use it to disable that?


More From » 12.04

 Answers
1

Simply blacklist the kernel driver:



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


After that, nobody can use a USB memory stick in that computer, but still allows the administrator(s) to manually load the module and use it.



To enable again simply remove the line from the blacklist file.


[#26660] Friday, January 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fertion

Total Points: 436
Total Questions: 121
Total Answers: 156

Location: England
Member since Sun, May 21, 2023
1 Year ago
fertion questions
Thu, Mar 9, 23, 06:46, 1 Year ago
Thu, Jun 17, 21, 01:06, 3 Years ago
Mon, Jun 13, 22, 07:30, 2 Years ago
Fri, Mar 10, 23, 12:13, 1 Year ago
;