Skip to main content

Posts

Showing posts with the label Mountain Lion

How to disable USB ports on Mac OS X Mavericks, Yosemite or El Capitan ?

We might wonder how to disable the USB ports on Mac to prevent data copy to external USB mass storage devices. The USB kext on os x is loaded at the time of start of the system, this can be loaded / unloaded using kextload or kextunload command. To disable USB port on Mac , follow below steps: On Macs running  Mountain Lion, Mavericks  and Yosemite : Unmount any connected USB devices to the system by running below command                  $ diskutil unmount /Volumes/USBDISK. Now unload the USB related kernel extensions in the following order using kextunload command.             sudo kextunload -b com.apple.driver.AppleUSBCardReader             sudo kextunload -b com.apple.driver.AppleUSBODD             sudo kextunload -b com.apple.iokit.IOUSBMassStorageClass        This wil...

How to reset password in single user mode in Mac OS X

To change the user password in Leopard(10.5.x) or SnowLeopard (10.6.x) Hold "Command + S" key on your mac keyboard to boot your mac into single user mode. Execute command "mount -uw /" in shell. Run below command " launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist" Execute command :  passwd change the password of root.