2
votes
1answer
125 views

“sudo: no tty present” for munin plugin using password-less sudo

I am writing a plugin for munin to monitor something on our Ubuntu Linux server (which is on Amazon EC2). The plugin requires running a programme /usr/sbin/rabbitmqctl via sudo. I have the following ...
1
vote
1answer
105 views

How can I give tomcat sudo right [duplicate]

Possible Duplicate: No TTY present when running commands over SSH in here-document I installed tomcat7. It is nologin user tomcat7. That said, I need to give tomcat7 sudo rights to run ...
1
vote
2answers
2k views

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

I am trying to run this bash script as a cron job, but I am getting an error which says sudo: sorry, you must have a tty to run sudo. I am running this bash script in amazon EC2 linux instance. ...
2
votes
2answers
1k views

Running sudo commands in cloud-init script

I'm developing an automatic bootstrapper for some servers as we are using Amazon EC2 for our infrastructure. What I do is: run a Fabric script which connects to EC2 and initializes a new instance, ...