I am writing a web (intranet) app in php to maintain some config info. Some of the configs are 644, owner root, group root, so app does not by default have write permission.
Also, I would like to be able to restart some /etc/init.d jobs, again requiring permissions beyond apache/php level.
What is the best way forward - should I have a shellscript or perl proggy that I call that will execute the command with higher permissions or is there a better way.
Currently I am fudging it with chmods to the files, but this is a bad thing (tm).
WaveyDavey |