use sudo -n to not prompt; do not use sudo for ping if setuid