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


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: Logo

You are commenting using your 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