How do I disable USB access in MAC system

Joined
May 13, 2011
Messages
1
Reaction score
0
Points
1
Hi Guys,

I'm using MAC OS X Version 10.6.3,
I just want to disable or block the usb access in my system.
I tried to solve it by deleting IOUSBMass storage.kext and IOUSB Family.kext files but after that my mouse and key board got stucked.

please help me if any one have the idea..

Thanks..
Saj
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,762
Reaction score
2,100
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
You removed USB related files and tried to use a USB keyboard and mouse and are wondering why it isn't working?

For what possible reason do you want to remove USB support from your Mac?

P.S., it's Mac not MAC..
 
Joined
Oct 22, 2007
Messages
8,967
Reaction score
287
Points
83
Location
London
Your Mac's Specs
Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
The easiest way is to glue a small square of plastic over the usb ports

Disabling drivers will just effect all USB devices, including a keyboard on a portable

You could also move the file in /System/Library/Extensions/IOUSBMassStorageClass.kext

(move it but dont delete it and leave IOUSBFamily.kext alone)

But why would you want to disable USB ports?
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Actually, disabling USB is documented in the OS X Security Configuration documentation, which is available here

Removing USB Support Software
Use the following instructions to remove USB mass storage device input/output
support such as USB Flash drives and external USB hard drives.
The removal of this kernel extension only affects USB mass storage devices. It does not
affect other USB devices such as a USB printer, mouse, or keyboard. This task requires
you to have administrator privileges.
Important: Repeat these instructions every time a system update is installed.

I did not paste the actual instructions ;)

it addresses USB storage, which would still allow your IO devices to work
 
Joined
Oct 4, 2010
Messages
296
Reaction score
5
Points
18
Install a motion sensor attached to a cattle prod glued your Mac. Then program it so that the prod sends an electric shock to any user who tries to plug in a USB device. Thanks to pavlovian reflexive conditioning, they will soon learn not to do that.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,762
Reaction score
2,100
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
...unless you're Bart Simpson in which case this will be a utter failure..:)
 

pigoo3

Well-known member
Staff member
Admin
Joined
May 20, 2008
Messages
44,212
Reaction score
1,424
Points
113
Location
U.S.
Your Mac's Specs
2017 15" MBP, 16gig ram, 1TB SSD, OS 10.15
Actually, disabling USB is documented in the OS X Security Configuration documentation, which is available

it addresses USB storage, which would still allow your IO devices to work

Very interesting, thanks for the link.:)

- Nick
 
Joined
Nov 4, 2012
Messages
3
Reaction score
0
Points
1
Actually, disabling USB is documented in the OS X Security Configuration documentation, which is available here



I did not paste the actual instructions ;)

it addresses USB storage, which would still allow your IO devices to work
Thanks for the Reply,
Now if i want to enable the disabled USB port then what should i do.
In the Documentation it says delete the file IOUSBMassStorageClass.kext.
If i want to enable the access of the usb port then what should i need to do.
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Don't delete the file. Just rename it, that way when you wish to enable the ports again all you have to do is rename it back.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Now if i want to enable the disabled USB port then what should i do.
Note that the procedure outlined in that document only disables USB mass storage functionality, not the USB port itself. You seem to suggest that you want to disable the port in its entirety.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top