I am working on a embedded linux system with a web interface (apache). Basically I need to add shutdown and restart functionality to the web interface. However, I am running into permission issues when running:
exec("shutdown now") etc...when calling through the webpage(ie apache).
How the heck do I allow these commands to be called from apache?
Would prefer not to have to give apache full root permissions, but system security is not a huge deal in my case, so if that is the only way, how can I do that?