"Sudo: Sorry, You Must Have a Tty to Run Sudo"

Follow

There are two options to disable requiretty globally or to allow a single command:

 

  1. Replace Defaults requiretty by Defaults !requiretty in your /etc/sudoers. This will impact the global sudo configuration.
  2. Alternatively, this configuration can be changed at a per user, per group or per command basis.

 

Defaults!/path/to/my/bin !requiretty
Defaults:myuser !requiretty

 

 

 

Have more questions? Submit a request

Comments