- Why system reports "permission denied on key" while setting the kernel parameter
# sysctl -w net.ipv4.conf.all.mc_forwarding=1 error: "Permission denied" setting key "net.ipv4.conf.all.mc_forwarding" # echo 1 > /proc/sys/net/ipv4/conf/all/mc_forwarding bash: /proc/sys/net/ipv4/conf/all/mc_forwarding: Permission denied
- Setting net.ipv4.conf.all.mc_forwarding to zero is failing with the following message:
-- Unit systemd-sysctl.service has begun starting up. Aug 19 16:30:56 fl1-tst-x.y.z systemd-sysctl: Failed to write '0' to '/proc/sys/net/ipv4/conf/all/mc_forwarding': Permission denied Aug 19 16:30:56 fl1-tst-x.y.z systemd: systemd-sysctl.service: main process exited, code=exited, status=1/FAILURE Aug 19 16:30:56 fl1-tst-x.y.z systemd: Failed to start Apply Kernel Variables. -- Subject: Unit systemd-sysctl.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit systemd-sysctl.service has failed. -- -- The result is failed. Aug 19 16:30:56 fl1-tst-x.y.z systemd: Unit systemd-sysctl.service entered failed state.
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.