Skip to content

Instantly share code, notes, and snippets.

@xsscx
Created December 2, 2017 03:14
Show Gist options
  • Save xsscx/7224702520b7ab19eb2b01434c38922a to your computer and use it in GitHub Desktop.
Save xsscx/7224702520b7ab19eb2b01434c38922a to your computer and use it in GitHub Desktop.
/usr/bin/osascript -e 'do shell script "whoami" user name "root" password "" with administrator privileges'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment