Apache + mod_php Ignores SUID?
- by profitphp
Does apache or mod_php cause a SUID flag to be ignored when using the shell_exec command from a web accessed PHP script?
I'm trying to allow a web accessible PHP script to rename some files which the apache user does not have write access to. I don't want to give it access to write these, as I only want one controlled script to be able to do this. I'm trying to avoid SUDO and the config needed or the headache/insecurity of using a que called from a privileged users cron, and it seemed like I should be able to use SUID to accomplish this.
If you need more info, I've got a similar question open over here, but I think its too detailed and people are not seeing what I'm asking.
http://stackoverflow.com/questions/6432931/suid-issues-with-php-apache