sudo: no tty present and no askpass program specified
sudoers file has the following entry:
Defaults:tomcat !requiretty
- created preferred credential on a host with tomcat user.
- created job with os command
sudo /etc/init.d/tomcat7 stop
I now get the following error:
sudo: no tty present and no askpass program specified