1

I want to set kernel.printk value to 5 4 1 1 for disable logging on booting but when I try

sysctl -w kernel.printk="5 4 1 1"

I get error:

sysctl: setting key "kernel.printk": Invalid argument
kernel.printk = 5 4 1 1

Also when I try write line

kernel.printk = 5       4       1       1

to /etc/sysctl.conf and run

sysctl -p

I have the same effect:

sysctl: setting key "kernel.printk": Invalid argument
kernel.printk = 5       4       1       1

What is wrong in my argument and how can I change it?

  • Which distribution are you using? What kernel version are you running? – Stephen Kitt Apr 5 '18 at 9:24
  • You have to do that as root, not as a normal user. – Rui F Ribeiro Apr 5 '18 at 9:26
  • @StephenKitt, Linux kernel version is 4.1.10 – Shadasviar Apr 5 '18 at 9:27
  • @RuiFRibeiro, I do it as root – Shadasviar Apr 5 '18 at 9:27
  • @Shadasviar what distribution? – Stephen Kitt Apr 5 '18 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.