How to get sudo to dump core?

Todd C. Miller Todd.Miller at
Thu Jun 26 15:40:09 EDT 2003

You face two problems:
 1) setuid binaries will not drop core on modern OSes
 2) sudo disables core dumps itself

You can avoid the first problem by running sudo as root but this
requires that you hack it to force root to authenticate just like
any other user (in check_user() just get rid of the short-cicuit
check for user_uid == 0).  Some OSes have a way to enable setuid
core dumpsC.  For the second issue you can simply add -DSUDO_DEVEL
to the DEFS line in sudo's Makefile.

 - todd

More information about the sudo-users mailing list