Allowing normal users to access dmesg
2022-1-18 20:39:49 Author: acassis.wordpress.com(查看原文) 阅读量:21 收藏

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/


文章来源: https://acassis.wordpress.com/2022/01/18/allowing-normal-users-to-access-dmesg/
如有侵权请联系:admin#unsafe.sh