I'm trying to change kernel log level using:
echo 8 > /proc/sys/kernel/printk
But I'm getting this error:
bash: /proc/sys/kernel/printk: Permission denied
Doing it with sudo does not help (getting the same error message).
If I read the proc file, it works:
$ cat /proc/sys/kernel/printk
7 4 1 7
I am working with following Linux kernel:
Linux 5.11.0-38-generic #42~20.04.1-Ubuntu SMP x86_64 GNU/Linux