Bug 79

Summary: visudo does not error with problem sudoers
Product: Sudo Reporter: Ken Foskey <ken.foskey>
Component: VisudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: low    
Priority: normal    
Version: 1.6.6   
Hardware: Other   
OS: AIX   

Description Ken Foskey 2002-04-28 18:51:58 MDT
My administrator just used visudo to edit config file he duplicated a working
entry.  I have verified this on Debain Woody sudo V1.6.6.  Original system is
AIX with sudo 1.6.2

operator  ALL=/some-script

with the following

testname  All=/somescript

The lower case 'All' was accepted by visudo and was not by the sudo command.

This should produce an error / warning.
Comment 1 Todd C. Miller 2002-04-28 20:41:59 MDT
The problem is that visudo has no way of knowing that "All" is not a hostname.
 The only reason sudo doesn't accept it is that the machine you are running it
on is not named "All".