Dmesg: read kernel buffer failed: Operation not permitted

It is not a big problem which works by sudo. Not sure when it became so, might be in recent updates.

[xiliang@fedora ~]$ uname -r
6.7.7-200.fc39.x86_64
[xiliang@fedora ~]$ dmesg
dmesg: read kernel buffer failed: Operation not permitted

3 Likes

You can still use journalctk -k (if your user has sudo access) to get the kernel logs or use sudo dmseg.

usermod -aG adm $USER

May do the trick. Got it from here ironically