Interesting that this was supposed to have been incorporated into
Ubuntu, and therefore all the *buntu flavors since the end of 2021.
Well, up until this evening (28 May 2024) i have been able the simply
use dmesg, without sudo, in every Kubuntu distro I've used since then
and of course before then
I can now see that the dmesg command - starting with Ubuntu 21.10 - is NOT
meant to work for the users in "adm" group. It is now meant to be run as admin
or with sudo. This is a security decision.
Described in here:
https://ruffell.nz/programming/writeups/2020/10/24/getting-dmesg-restrict-enable
I can confirm dmesg on Ubuntu 21.10 gives me "Operation not permitted",
even though my user is in the "adm" group:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 21.10
Release:21.10
Codename: impish
$ ls -l /var/log/dmesg*
-rw-r- 1 r
Apparently I am in the adm group. Who knew? Seems like dmesg could check
the user for that.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1952353
Title:
dmesg: read kernel buffer failed: Operation n
That isn't the case, apparently.
The file is only readable by user/group, but not others, in Impish, at
least.
Upgrade:
$ lsb_release -cs
impish
$ ls -l /var/log/dmesg
-rw-r- 1 root adm 95595 Oct 28 11:46 /var/log/dmesg
Install:
$ lsb_release -cs
impish
$ ls -l /var/log/dmesg
-rw-r-
And yet /var/log/dmesg is wide open. How entertaining!
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1952353
Title:
dmesg: read kernel buffer failed: Operation not permitted
To manage notifications
This has been intentionally changed a while ago, please see [1]. Thanks!
[1] https://lists.ubuntu.com/archives/ubuntu-devel/2020-June/041063.html
** Changed in: util-linux (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which