readthefuckingmanual.net

[SOLVED] CRITICAL - sudo must be configured with requiretty=no (man sudo)

Error added: 2011-01-12T16:49:01Z

0 people waiting for the answer...

1 answers found.

Answer 1622 (0.0% helpful)

Check the output of sudo -l

In our case, we were getting this, even though we'd configured !requiretty because nsswitch.conf specified sudoers files ldap, and ldap was configured to have a default of requiretty.

Anyway, basically, you need:
Defaults:username       !requiretty
And you need it to not be overridden by anything else.

That'll be £50 please.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: