I'm trying to execute route add command with PHP this way:
exec("/sbin/route -net 127.0.0.1", $output); and I'm getting SIOCADDRT operation not permitted. I suppose this is because I don't execute the route command through sudo.
But I can't do sudo from php because the command asks for the su password. So how can I run route add without sudo?
Thanks!