I am trying to run the following command:
sudo git pull;
I get the following error:
Command failed: sudo: sorry, you must have a tty to run sudo
The command is being run from a nodejs server using child_process and exec.
I have looked at other questions and sites that try and solve this error but none of the solutions ie editing /etc/sudoers and using ssh -t work.
I do not have root access and am therefore using sudo in the command.
I am running a basic Amazon EC2 Linux 64bit instance.
/etc/sudoerswithvisudo? How aboutssh -t -t ...? – quanta Oct 31 '11 at 12:19Default requiretty. – Christopher Oct 31 '11 at 13:07ssh -t -t...? – quanta Oct 31 '11 at 14:55