I can enter this sudo sysctl kernel.dmesg_restrict=0 but is seems reset after logoff and on
How do I set this permanently
I can enter this sudo sysctl kernel.dmesg_restrict=0 but is seems reset after logoff and on
How do I set this permanently
A couple of options: sysctl -w to append to /etc/sysctl.conf or a drop-in file in /etc/sysctl.d.
Unfort. sysctl -w is reset after reboot.,
Doing echo "kernel.dmesg_restrict=0" > /etc/sysctl.d/dmesg4all did not work either.
The filename needs to end in .conf, I think.
wait.. it did work after doing sudo sysctl -p /etc/sysctl.d/dmesg4all
With the .conf it should hopefully get autoloaded at startup and not require a manual sudo sysctl -p ?
echo "kernel.dmesg_restrict=0" | sudo tee /etc/sysctl.d/dmesg4all
sudo sysctl -p /etc/sysctl.d/dmesg4all
how is that a solution? Do you run
sudo sysctl -p /etc/sysctl.d/dmesg4all
manually after each system start?
I’d suggest reading man sysctl.conf and man systemd-sysctl
thanks! I read those. Now what?
It won’t work if the file you write to in /etc/sysctl.d doesn’t end up with extension name .conf. Instead of dmesg4all use dmesg4all.conf.