6 Oct
2021
6 Oct
'21
13:56
On Wed, 6 Oct 2021 14:38:47 +0200
"Carlos E. R."
On 06/10/2021 14.21, Mathias Homann wrote:
...
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. Thanks.
cer@minas-tirith:~> sysctl kernel.dmesg_restrict kernel.dmesg_restrict = 0 cer@minas-tirith:~>
$ sysctl kernel.dmesg_restrict Absolute path to 'sysctl' is '/usr/sbin/sysctl', so running it may require superuser privileges (eg. root).