Answer the question
In order to leave comments, you need to log in
Why doesn't www-data ALL=NOPASSWD: /sbin/iptables work?
I want to allow iptables to run from php, I write in sudoers www-data ALL=NOPASSWD: /sbin/iptables? I'm trying to run a script that executes exec("sudo iptables -I INPUT -s 45.117.249.31 -j DROP"); says that there is no permission. How can it be solved?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question