Quick Fix: Invalid MIT-MAGIC-COOKIE-1 When “sudo” Updated Feb 9, 2016 | Quick Fix When you try opening an app using the command “sudo <app_name>” in order to obtain root (administrator) privileges, you may encounter a strange looking error: Invalid MIT-MAGIC-COOKIE-1