title: Mac Os X 10.10 Yosemite disable usb ports
body: <p>I am struggling to disable USB ports on macs with the new Yosemite</p>
  <p>My original intention was to give read only access to USB drives but it seems impossible, so I decided to go for the complete removal of the USB access</p>
  <p>I followed the instructions on the osX manual but won't work</p>
  <p>I tried this, posted here in the forum: <a href="https://stackoverflow.com/questions/28348963/mac-osx-10-10-disable-usb-ports?newreg=0de1f6ac677f469f911ccefd0284a36e">link</a> but it won't work</p>
  <p>What I get now is this error <a href="https://stackoverflow.com/questions/17345305/unload-kext-which-still-has-instances">link</a></p>
  <blockquote>
  <p>(kernel) Can't remove kext com.apple.iokit.IOUSBMassStorageClass; services failed to terminate - 0xdc008018.</p>
  <p>Failed to unload com.apple.iokit.IOUSBMassStorageClass - (libkern/kext) kext is in use or retained (cannot unload).</p>
  </blockquote>
  <p>It may be because I removed the file from the extensions folder first, but if that was the case, why usb is still working?
  Hope you can help somehow.</p>
  <p>Cheers</p>