I am working on a Linux embedded system with a web interface (apache). Basically I need to add stop and reload functions to the web interface. However, when I run, I run into permission issues:
exec ("shutdown now"), etc. when called through a web page (e.g. apache).
How can I allow these commands to be called from apache?
Prefer not to grant full apache permissions, but system security is not a big problem in my case, so if this is the only way, how can I do this?
source share