mikelynn2 / blacklistmonitor

Web based application for monitoring Domains and IPs on RBLs
MIT License
85 stars 42 forks source link

sudo: sorry, you must have a tty to run sudo #2

Closed amityweb closed 9 years ago

amityweb commented 9 years ago

Hi

I get this error in the log: sudo: sorry, you must have a tty to run sudo

amityweb commented 9 years ago

Removed the sudo -u root from blacklistmonitor.conf and now it works OK

mikelynn2 commented 9 years ago

what ubuntu version you on? looks related to this. But glad you fixed it. Mine only worked with the sudo -u root

http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password

mikelynn2 commented 9 years ago

this answer at the bottom looks like a fix for this - will have to test to confirm

http://serverfault.com/questions/357060/how-should-i-use-sudo-from-an-upstart-script

amityweb commented 9 years ago

I am not on Ubuntu, but Centos. I think its working for me now.