scott wrote:
The ownership problem is one to consider security on carefully. The way I overcome the few scripts that need to be run as another user is to put them into my /etc/sudoers file ("man sudoers") for the file format, then execute "sudo script_name" ("man sudo" for details).Thanks Chris,Could you explain to me how to launch a program from PHP as another user, such as root? The app that I am trying to launch, apache does not have rights to. And, it would be to complex of a procedure to change the ownership on all of the processes that go with it.
This way, only the scripts that need to be run as another user can be done. Security is much better than trying to change the webserver user. If you are on a shared server, note that not all hosting companies allow this.
Maybe others do it differently?
Regards
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php