Bug 239

Summary: "Defaults requiretty" requires the process have a tty even if it does not prompt for a password
Product: Sudo Reporter: Dale R. Worley <Dale.Worley>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: normal    
Version: 1.6.8   
Hardware: PC   
OS: Linux   

Description Dale R. Worley 2007-03-28 12:33:25 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.
Comment 1 Todd C. Miller 2007-04-24 14:50:31 MDT
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.