Editing Preferences.xml - Permission Denied

Have not done what you are trying myself as I’ve always been on Linux but take a look at this thread and it may help