ulimit core file size set to zero in sudo sessions

This document (000020902) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server for SAP Applications 15 Service Pack 4
SUSE Linux Enterprise Server 15 Service Pack 4


In certain environments it may be desired to allow the capturing of core dump files in bash or any other shell. After updating to SUSE Linux Enterprise 15 Service Pack 4 based releases it is observed that sudo environments set the ulimit value of core file size to zero as illustrated in the following example

user@localhost:~> sudo -i -u linux
[sudo] password for linux:
linux@localhost:~> ulimit -a
core file size          (blocks, -c) 0

while for regular logins, sshd or "su -" sessions the value is set to "unlimited"

user@localhost:~> su - linux
linux@localhost:~> ulimit -a
core file size          (blocks, -c) unlimited


Please add the option
Defaults rlimit_core=default
to /etc/sudoers using the command visudo as root.


A change in the behaviour of sudo to avoid potential security risks where a core dump file is treated as trusted input.

Additional Information

Please see the section of "Resource limits" in man 5 sudoers for details.


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020902
  • Creation Date: 22-Dec-2022
  • Modified Date:22-Dec-2022
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center