Bug 134 - Add switch to dump configuration to output
Add switch to dump configuration to output
Status: ASSIGNED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.7
All All
: low enhancement
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-04-08 04:19 MDT by John van Zantvoort
Modified: 2004-11-24 18:48 MST (History)
0 users

See Also:


Attachments

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