corpnewt / USBMap

Python script for mapping USB ports in macOS and creating a custom injector kext.
MIT License
1.03k stars 88 forks source link

Permission Denied Error -- Reboot and run USBMap as sudo #34

Open laflier opened 2 years ago

laflier commented 2 years ago

In case it helps other hackintoshers, here are a couple of things might not be entirely clear from the instructions...

It wasn't clear from the instructions -- although it makes sense programmatically -- that after you complete the System Preparation step in the OpenCore Post-install guide, you need to reboot for the changes you made in config.plist to take effect. Those changes would be (1) setting the XHCIPortLimit to "true" and (2) copying the required patches from usb-rename.plist. I used ProperTree for the former and TextEdit for the latter.

Secondly, you may (as I did) run into a file permission error when attempting to construct the USBMap.kext dummy injector. The error will be that the "Results" folder can't be created because USBMap doesn't have permission to create it. You'll see "permission denied" or some such in the Terminal window. The solution to this is to run USBMap as sudo. So, instead of "./USBMap.comand" run "sudo ./USBMap.command", enter your user password and then when you press "K" you should get a Results folder inside the USBMap folder containing USBMap.kext and USBMapLegacy.kext.