Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Getting 'sudo: sorry, you must have a tty to run sudo' when running a program as daemon

Hi,

I installed openstack on CentOS and when running my program as daemon I get 'sudo: sorry, you must have a tty to run sudo' error message. After commenting out 'Default requiretty', the error disappears. I was wondering what is the correct fix for that?