I'm a n00b when it comes to ssh, sudo and other unix things... so bear with me, here.
i've got a rails website set up and deploying with vlad via ssh already. this works fine. now i need to have my deploy process run a sudo command to restart monit.
i basically just want to run "sudo monit reload" and "sudo monit start my_job_name". but when i have vlad run these commands, i get errors from ubuntu server:
sudo: no tty present and no askpass program specified
I've done some google-searches and most of the answers i've found involve modifying /etc/sudoers
to not require a password for the commands i want. i don't like this option, honestly. it seems like a hack / workaround when i should be able to configure my server to correctly ask for a password and have vlad provide the password (after all, vlad supports a ssh_password
setting, which i have filled in).
can someone point me in the right direction to configure my vlad script and my ubuntu 10.10 server, to run my sudo command correctly?