On 2017-10-04 23:22 +0200, Uwe Mintermann wrote: > I am facing the problem that no core files are written on my server > (Debian GNU/Linux buster/sid). > > root:~# sysctl kernel.core_pattern > kernel.core_pattern = |/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e > root:~# ls /usr/libexec/abrt-hook-ccpp > ls: cannot access '/usr/libexec/abrt-hook-ccpp': No such file or directory > > Ok problem is clear. abrt should handle segment faults but abrt is not > installed. So I am trying to change the sysctl kernel.core_pattern to > "core" as root (no sudo). > > root:~# sysctl -w kernel.core_pattern=core > sysctl: permission denied on key 'kernel.core_pattern' > > > root:~# echo "core" > /proc/sys/kernel/core_pattern > bash: /proc/sys/kernel/core_pattern: Permission denied > > root:~# rm /proc/sys/kernel/core_pattern > rm: cannot remove '/proc/sys/kernel/core_pattern': Permission denied > > Whats wrong? I have no access as root even though the file system is > mounted as writable.
Does your server run in a container? I found a few links which indicate that this might lead to the problem[1,2]. Cheers, Sven 1. https://forum.proxmox.com/threads/php-fpm-core-dumps-how-to-enable.30868/ 2. http://forum.odin.com/threads/proc-sys-kernel-core_pattern-permission-denied.338549/