After upgrading to Slackware64 13.37, I cannot access the kernel syslog (dmesg) as user. This problem is caused by kernel (2.6.37.3) setting in Slackware (see pictures below).
There are 2 solutions, you are freely to choose one of them.
Solution 1: add these lines on your rc.local:
if [ -r /proc/sys/kernel/dmesg_restrict ]; then
if [ $(cat /proc/sys/kernel/dmesg_restrict) = 1 ]; then
echo 0 > /proc/sys/kernel/dmesg_restrict
fi
fi
if [ $(cat /proc/sys/kernel/dmesg_restrict) = 1 ]; then
echo 0 > /proc/sys/kernel/dmesg_restrict
fi
fi
Solution 2: change the correspond kernel setting (restrict unprivileged access to the kernel syslog) to "N" then recompile the kernel.
2 comments:
luckily i compiled my own kernel :)
He... he...
Actually, I compiled my own kernel also. However, I always make slackware kernel configuration as my reference and change a little bit for my laptop. Unfortunately, I could not detect this problem before I compiled the kernel, so, it showed up.
Post a Comment