Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 53 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.

share|improve this answer
    
Thanks, that worked. –  user27451 Feb 10 '10 at 11:39
8  
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 '12 at 10:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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