Bug 134

Summary: Add switch to dump configuration to output
Product: Sudo Reporter: John van Zantvoort <j.van.zantvoort>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: ASSIGNED ---    
Severity: enhancement    
Priority: low    
Version: 1.6.7   
Hardware: All   
OS: All   

Description John van Zantvoort 2004-04-08 04:19:25 MDT
When trying to edit the configuration of sudo it's nice to know what has 
already been defined, most noteably the "Default <file in var>" lines created 
some headaches on my part.

Therefore a switch for sudo which causes it to dump the configuration to stdout 
(like e.g. samba's testparms) might be usefull. The "-l" switch already gives 
some information about the current user but not for all users and not all 
configuration info.

Of course this kind of output is best restricted to the root user.
Comment 1 Todd C. Miller 2004-11-24 14:48:51 MST
Are you basically asking for an option to dump out sudoers along with the builtin Defaults vales? 
"sudo -V" when run as root already prints out the bulitin Defaults info but I can't exactly what you are 
asking for.