if you are trying to run a command via sudo and encounter the following error:
sudo: sorry, you must have a tty to run sudo
then you can comment out the following parameter in the /etc/sudoers
#Defaults requiretty
if you are trying to run a command via sudo and encounter the following error:
sudo: sorry, you must have a tty to run sudo
then you can comment out the following parameter in the /etc/sudoers
#Defaults requiretty