How to Enable & Disable USB Ports / Storage Device Access in Mac OS X

August 4th, 2009 by @HKw@! | Filed under Mac OS X.

For information security purposes, it is necessary to disallow your staff from using USB drive within the office area. The best way to stop your staff from using USB drive is to disable the USB ports.

Is there any way to disable the USB ports on a Mac?

How to disable USB ports

  • Log on with an administrator account
  • Goto /System/Library/Extensions/ from your system disk
  • remove IOUSBMassStorageClass.kext from /System/Library/Extensions/ or
  • Rename the file name from terminal sudo mv /System/Library/Extensions/IOUSBMassStorageClass.kext / IOUSBMassStorageClass.kext.backup
  • Reboot the machine.

Now you can try to plug in your USB drive to your USB port. Your USB port should not response your UBS drive.

Just try it :-)


Share

Tags: , , ,

8 Responses to “How to Enable & Disable USB Ports / Storage Device Access in Mac OS X”

  1. Deepak Kumar Nayak says:


    Sir,
    i removed the IOUSBMassStorageClass.kext file , now my usb disable but now i want to enable usb. how is it possible

  2. @HKw@! says:


    Just restore your IOUSBMassStorageClass.kext file

  3. spandan kc says:


    sir,
    i connected a usb device and it is not responding. it says the device is drawing too much power so to prevent for further damage of computer usb has been disabled so now i don’t know what to do. I really need yours help.

  4. @HKw@! says:


    Pls elaborate more about the problem that u facing

  5. boyet says:


    i found out that it is easy to disable usb port… but to enable it again is quite tedious compare to windows bios setup..

    or are there other ways to enable it?

    thanks

  6. @HKw@! says:


    ya. before you disable, just keep a copy of the configuration file. If you need to enable the USB port, just replace the configuration fie.

  7. Andrew Wong says:


    Hey,

    What about if you wanted to only allow certain devices to load?

  8. @HKw@! says:


    I don’t think can do it unless you have directory server

Leave a Reply

BlogCatalog