Allowing normal users to access dmesg

New Ubuntu releases prevents normal user from running the dmesg command. But you can restore the original permission running this command:

$ sudo sysctl -w kernel.dmesg_restrict=0

You can make it permanent this way:

echo 'kernel.dmesg_restrict=0' | sudo tee -a /etc/sysctl.conf

Source: https://www.cyberciti.biz/faq/how-to-prevent-unprivileged-users-from-viewing-dmesg-command-output-on-linux/

2 thoughts on “Allowing normal users to access dmesg

  1. Thanks. I use Mint (derived from Ubuntu) and this issue hasn’t yet made it to Mint from the Ubuntu base but I’ll bookmark this so that I can fix Mint once the issue makes it there.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s