Skip to content

Instantly share code, notes, and snippets.

@mstrauss
Created September 12, 2011 02:34
Show Gist options
  • Save mstrauss/1210476 to your computer and use it in GitHub Desktop.
Save mstrauss/1210476 to your computer and use it in GitHub Desktop.
Restore sudoers File on Mac OS after adversely deleting it :-(
do shell script "echo '%admin ALL=(ALL) ALL' > /etc/sudoers" with administrator privileges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment