Bugzilla – Bug 239
"Defaults requiretty" requires the process have a tty even if it does not prompt for a password
Last modified: 2007-04-24 14:50:31 MDT
When "Defaults requiretty" is present in /etc/sudoers, sudo refuses to run if the process does not have a tty even if sudo will not prompt the user for a password. This can be problematic in various circumstances, so the user removes "requiretty" from /etc/sudoers. But that negates the additional security that "requiretty" provides.
The option behaves as intended. Part of the reason for requiretty is to prevent users without a real login session from running sudo. For example, cgi scripts.