Allocate PTY for sudo, failure 'sudo: sorry, you must have a tty to run sudo'