TTY sudo fun

requiretty is an option in /etc/sudoers which prevents sudo operations from non-TTY sesssions. # This will be disallowed ssh example.com echo “hello world” sudo: sorry, you must have a tty to run sudo # This will work ssh -t example.com echo “hello world” hello world If however you’re using SSH via a wrapper you cannot… Continue reading TTY sudo fun