Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to add some file in a remote server by BigTuna (continuous integration tool), and it give me a error message. Any one have any idea how can I add that file to server?

sudo: no tty present and no askpass program specified
share|improve this question

migrated from stackoverflow.com Jun 23 '11 at 16:09

This question came from our site for professional and enthusiast programmers.

2 Answers 2

This is due to 'requiretty' option on /etc/sudoers. If you have access to it, you might just remove that option.

If not, there are other ways as well. Probably you are doing something like ssh user@host sudo do_something. You can try to add -t option to allocate tty by ssh (so it would be ssh -t user@host sudo do_something).

share|improve this answer

Your application use the sudo command in a no tty, you may bypass this by editing the file /etc/sudoers and comment this line :


Defaults    requiretty

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.