Permanently allow dmesg

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 ?