How to give non-root user permission to run dmesg without su or sudo?

If you want to make it persistant, you can add it to a file in /etc/sysctl.d/ say, /etc/sysctl.d/01-dmesg.conf.txt
Then enter:

kernel.dmesg_restrict = 0

The spacers aroung ‘=’ are important, it doesn’t work without.