Red Hat 8.6 Allow Users to Execute coredumpctl
/When executing coredumpctl list you get the follow “error”:
Hint: You are currently not seeing messages from other users and the system. Users in the 'systemd-journal' group can see all messages. Pass -q to turn off this notice. No journal files were opened due to insufficient permissions.
Disclaimer
This fix will allow users to execute journalctl which is typically not something you would want users to be able to view or access without escalating privileges. There may be a more appropriate fix but I am currently unaware of how to do so.
Assumptions
You have already configured the system to allow coredumps to be created.
How to Fix
Simply execute the following command as root or sudo. My user name is “dev”.
sudo usermod -a -G systemd-journal username
My Example
sudo usermod -a -G systemd-journal dev
You will need to logout for the changes to take effect. Or reboot. Which ever works.
You should now see your user in /etc/group, may look like this below.
kvm:x:36:qemu
render:x:998:
systemd-journal:x:190:dev
systemd-coredump:x:997:
systemd-resolve:x:193:
All Files I have modified to allow coredumps on Red Hat 8
Below are all of the modifications I have made to enable coredumps. How to enable coredumps on Red Hat 8 essentially.
Added the following to /etc/security/limits.conf
* hard core 0 (Unlimited Size, you can specify limits if you wish)
Added the following to /etc/sysctl.conf
fs.suid_dumpable=2
kernel.core_pattern=/var/crash/core.%e.%p.%h.%t (Optional, not required.)
kernel.core_uses_pid=1 (Optional, not required.)
Modified /etc/systemd/coredump.conf
Storage=external
ProcessSizeMax=0
Modified/Appended the following line to /etc/systemd/system.conf
DefaultLimitCORE=0:infinity (This is for daemons. Not required.)
ABRT Service Not required
This service is only needed for applications that have shipped with Red Hat evidently.