Enable/ Disable USB Port on Mac OS X: MacBook Pro, Air

Most common reason behind block or disable USB port on Mac OS X EI Capitan, or Yosemite Should be security. I am not talking about remotely track data by attacking and cracking security. I am not criticizing of apple’s security. Because apple always serve locking security on data.

So, People have best option for cheat useful files, Folders, and Application using USB slot. Normally apple device has three to four USB port, But using below steps you can disable or turn off all port at once.

Note: if you are using USB Keyboard or Mouse then don’t try, Otherwise you would be put in trouble. So first arrange USB accessories then disable.

Suggestion: Keep backup before remove USB system file from Mac.

Step for block or Disable USB Port on Mac, MacBook: OS X EI Capitan, Yosemite

Step 1: Launch Finder from spotlight search on Mac.

Step 2: Next, Go to the top menu option Go > Go to Folder. Turn off or Disable USB Port on Mac or MacBook

Enter below system folder path for directly jump there.

Copy below line, Remove USB block extension on Mac OS X


And Go there.

Now, you have to find two files on below name,



Both file you have to delete from there, Before that must copy that file and keep files on another place as a backup use. System files on Mac for Block USB Port

Note: Files you have to move in to trash and also clear trash.

Once you are done,

Reboot your Mac by simply restart it. And test once USB drive is detecting or not.

Alternate Way: Block or Disable USB port on Mac

Run below three common command from the terminal,

To open terminal, Search easily from spotlight search by type “Terminal”.

CP /System/Library/Extensions/IOUSBMassstorageClass.kext ~/backup/  

Sudo srm -rf /System/Library/Extensions/IOUSBMassStorageClass.kext 

Sudo touch /Sytem/Library/Extensions 

After successfully run, Restart your Mac and Test once.

Here I experienced on Mac OS X EI Capitan and Yosemite by Disable USB Port on Mac. Make sure it’s working on older version, I am not sure. most probably works if I believe.