How to get sudo to dump core?

mlh at zip.com.au mlh at zip.com.au
Fri Jun 27 06:26:28 EDT 2003


On 26 Jun 2003 12:50:23 -0600
Alan Sparks <asparks at quris.com> wrote:

> Is there a way to get sudo to dump core on a segfault?

 for the sudo limitation, see Todd's reply.  For Solaris, see docs.sun.com:



Enabling setuid Programs to Produce Core Files

You can use the coreadm command to enable or disable setuid programs to produce core files for all system processes or on a per-process basis by setting the following paths:

    *

      If the global setuid option is enabled, a global core file path allows all setuid programs on a system to produce core files.
    *

      If the per-process setuid option is enabled, a per-process core file path allows specific setuid processes to produce core files.

By default, both flags are disabled. For security reasons, the global core file path must be a full pathname, starting with a leading /. If superuser disables per-process core files, individual users cannot obtain core files.

The setuid core files are owned by the superuser with read/write permissions for the superuser only. Ordinary users cannot access them even if the process that produced the setuid core file was owned by an ordinary user.

See coreadm(1M) for more information.


More information about the sudo-users mailing list