Apache + mod_php Ignores SUID?
Posted
by
profitphp
on Server Fault
See other posts from Server Fault
or by profitphp
Published on 2011-06-21T23:34:59Z
Indexed on
2011/06/22
0:24 UTC
Read the original article
Hit count: 496
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
© Server Fault or respective owner