What does this mean - sudo: no tty present and no askpass program specified?

Linode Staff


I keep getting this email from the server:

sudo: no tty present and no askpass program specified

1 Reply


I suggest first running the following commands:

sudo visudo

Then add the following at the end of the file.

< Your Username > ALL=(ALL) NOPASSWD: ALL

If that does not work, check and see if a particular job is sending out the mail.

Then add the NOPASSWD to the file or application the job is calling.

username (or application) ALL = NOPASSWD: /fullpath/to/command

Please note that this fix will remove the prompt for a sudo password, thus lessening the security on your server.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct