Skip to content

Instantly share code, notes, and snippets.

@daryltucker
Created December 31, 2019 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daryltucker/c0f712a195718e99d39020891c50a01f to your computer and use it in GitHub Desktop.
Save daryltucker/c0f712a195718e99d39020891c50a01f to your computer and use it in GitHub Desktop.
Allow non-root User to access syslog/dmesg
$ dmesg
dmesg: read kernel buffer failed: Operation not permitted
$ sudo sysctl -w kernel.dmesg_restrict=0
$ dmesg
@rsalinas
Copy link

If you want to make this change persistent, you need to edit /etc/sysctl.d/10-kernel-hardening.conf (on Ubuntu 22.10 at least)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment