More Info: posix_getuid() Lies?

From: Date: Tue, 05 Dec 2000 21:23:55 +0000
Subject: More Info: posix_getuid() Lies?
Groups: php.general 
Request: Send a blank email to php-general+get-28761@lists.php.net to get a copy of this message
Earlier I wrote: >In debugging problems with horde/IMP, we've discovered >posix_getuid() claims >Apache >is running as root. In fact, Apache is configured to run as a >user 'httpd' As I've had a couple of replies telling me my post is "off-topic," I thought I'd provide more info. The IMP webmail application, written in PHP, refuses to run if it finds itself "web-configurable." That is, if it detects a couple of files are readable and/or writable *BY THE USERID UNDER WHICH PHP RUNS* it will refuse to run. posix_getuid() is coming back with a UID of zero on this system, apparently getting it from the Apache web server's parent process. Thus, even if all the correct permissions are set on the IMP checkfiles, the application still refuses to run, since UID 0 has superuser priv's. -- Tim Evans, T.Rowe Price Investment Technologies | tkevans@troweprice.com 11550 Cronridge Drive, Owings Mills, MD 21117 410-345-3174; Pager: 800-946-4646, PIN 1716638; FAX 410-345-3030

« previous php.general (#28761) next »