Bug 79 - visudo does not error with problem sudoers
visudo does not error with problem sudoers
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Visudo
1.6.6
Other AIX
: normal low
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2002-04-28 18:51 MDT by Ken Foskey
Modified: 2002-04-29 00:41 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".