Re: How to disable automatic core dumps in Debian 9?
Hi.
On Wed, Jun 12, 2019 at 12:49:14PM +0300, Martin T wrote:
> As Debian does not seem to use systemd-coredump,
It's a feature, not a flaw.
> then I set the "kernel.core_pattern=|/bin/false" kernel configuration
> in sysctl.conf
sysctl -w kernel.core_pattern=/dev/null
There's no need to pipe the core to /bin/false if you don't need the
core in the first place.
> and following pam_limits.so module configuration:
>
> $ grep -w core /etc/security/limits.conf
> # - core - limits the core file size (KB)
> * hard core 0
> root hard core 0
> #root hard core 100000
> $
rgrep core /etc/security/limits*
Would be more correct. Files at /etc/security/limits.d/ can override
limits.conf.
> Ween I execute a program, which crashes, then while the "core dumped"
> is printed:
A simple 'ulimit -c' would suffice.
Reco
Reply to: