Since recently Debian has changed the default behavior for dmesg
and I cannot use it simply from my local user.
% dmesg
dmesg: read kernel buffer failed: Operation not permitted
Same goes for:
% cat /dev/kmsg
cat: /dev/kmsg: Operation not permitted
Starring at the bug tracker this lead to:
How do I change this behavior back to the previous one, where local user are allowed to use dmesg. I could not find a particular group for it (eg. sudoers or something like that).
Best Answer
So it was actually trivial, looking at the very last message from the bug report:
So the solution is simply to run once:
Then your local user can start using
dmesg
again. This apply to any user, instead of a group which I initially assumed.Everything is back to what I wanted:
and
And to make it persists across reboots, simply save it as conf file: