Am Mittwoch, 6. Oktober 2021, 14:13:49 CEST schrieb Carlos E. R.:
On 06/10/2021 14.04, Anton Aylward wrote:
On 2021-10-06 04:00, Carlos E. R. wrote:
On 06/10/2021 09.53, jdd@dodin.org wrote:
but if every user is allowed to use sudo dmesg, where is the security?
Try add your user to group "root". Dmesg works here (15.2)
Well that is a pretty unrestricted security violation. Why not just log in as root to start with? It amounts to pretty much the same thing.
Surely not.
The only thing I noticed is being able to see logs easily.
or ... you could search with google for "dmesg only as root", and one of the first results will be a tutorial about how to make it that way. In that tutorial you will find this: "How do I restrict unprivileged access to kernel syslog? Run the following sysctl command as root user: $ sudo sysctl -w kernel.dmesg_restrict=1" so to have it the other way around all you do is set that sysctl value to 0. cheers MH -- Mathias Homann Mathias.Homann@openSUSE.org OBS: lemmy04 Jabber (XMPP): lemmy@tuxonline.tech IRC: [Lemmy] on freenode and ircnet (bouncer active) telegram: https://telegram.me/lemmy98 keybase: https://keybase.io/lemmy gpg key fingerprint: 8029 2240 F4DD 7776 E7D2 C042 6B8E 029E 13F2 C102