Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

sudo: no tty present and no askpass program specified

John McFarlane March 31, 2015

SU access to our Bamboo Agents has suddenly stopped working. The first time any script in a Bamboo Job tries to invoke `sudo` we get:

sudo: no tty present and no askpass program specified

(In at least several examples, `yum` is the command we're trying to run.)

All of these scripts were running happily 12 hours ago. We have only just started looking into what may have happened. Any pointers?

2 answers

1 vote
Caley Goff March 31, 2015

on most *nix systems you can type visudo as root and look for something called Disable requiretty. Comment this out save and exit. 

 

https://wiki.archlinux.org/index.php/Sudo#SSH_TTY_Problems

0 votes
John McFarlane March 31, 2015

Thanks.

The underlying problem was that `yum` didn't exist on the system because it was an Ubuntu image intended for a different plan. (Ubuntu uses `apt-get`, not `yum`.) A change had been made to that Ubuntu image which accidentally caused it to become eligible for use on a plan for which it was not suitable.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events