Answer by GarouDan for sudo: no tty present and no askpass program specified
In my case I've received this error because I wasn't specifying a command that I would like to use as root in the sudoersSomething like/etc/sudoers.d/myuser:myuser ALL=(root) NOPASSWD: \ /bin/ls...
View ArticleAnswer by Peter for sudo: no tty present and no askpass program specified
You can also create a file like "sudo_shutdown" in /etc/sudoers.d, with content:# Allow admins to shutdown without pass%adm ALL=(ALL) NOPASSWD: /sbin/shutdownThis allows users which are in the adm...
View ArticleAnswer by elika kohen for sudo: no tty present and no askpass program specified
Question:How can I work around this?sudo: no tty present and no askpass program specifiedAlternate AnswerAs an alternative, try:sudo -S ./[yourExecutable]This directs sudo to read the password from the...
View ArticleAnswer by kenorb for sudo: no tty present and no askpass program specified
It fails, because sudo is trying to prompt on root password and there is no pseudo-tty allocated.You've to either log-in as root or set-up the following rules in your /etc/sudoers (or: sudo visudo):#...
View ArticleAnswer by user282246 for sudo: no tty present and no askpass program specified
You need to define terminal/application that will read the password. There are two variants:export SUDO_ASKPASS=/usr/libexec/openssh/ssh-askpassvim /etc/sudoers (Defaults visiblepw)
View ArticleAnswer by Drew Noakes for sudo: no tty present and no askpass program specified
A simple way is to specify -t:ssh -t remotehost "sudo ./binary"From the man page:Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can...
View Articlesudo: no tty present and no askpass program specified
When attempting to run a remote binary using sudo on the remote box:ssh remotehost "sudo ./binary"I see this error:sudo: no tty present and no askpass program specifiedHow can I work around this?
View Article