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:
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
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
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1952353
Title:
dmesg: read
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
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1952353
Title:
dmesg: read kernel buffer failed: Operation not
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
Touch
6 matches
Mail list logo