I don't want to uncomment the line in /etc/sudoers:

Defaults    requiretty

Instead, I only want a certain user not to require a tty. How can this be done?

link|improve this question

75% accept rate
feedback

1 Answer

up vote 17 down vote accepted

You said that you want one particular user to not require a tty. That's the default behavior. Nevertheless, you can explicitly set that like this:

Defaults:username !requiretty

If you want everyone else to require a tty, then you'll have to uncommment the line.

link|improve this answer
Thanks, that worked. – user27451 Feb 10 '10 at 11:39
Btw., requiretty is active per default on RHEL5. Good to know its not like that in other distributions. – user27451 Feb 13 '10 at 14:11
This one might help someone. serverfault.com/questions/72708/execute-su-c-over-ssh – Senthil Kumar Mar 8 at 10:49
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.