It depends on how the webserver is setup. If its being run as a CGI then it
depends if suEXEC is enabled. If its not, it should be run as nobody,
whereas if it is (and the user/group paramater in httpd.conf is set) it'll
be run as whatever the directive is set to. If its run as a module, then the
userid should be nobody. Where are you trying to identify it from?

/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/

----- Original Message -----
From: George E. Papadakis <[EMAIL PROTECTED]>
To: PHP List <[EMAIL PROTECTED]>
Sent: Sunday, August 26, 2001 1:36 PM
Subject: [PHP] Shell or http?


| Hi,
|
| Is there any way to identify if a php script is running through a shell or
| web?
| Thanks in advance.
|
|
| -- GeorgeP
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| To contact the list administrators, e-mail: [EMAIL PROTECTED]
|
|
|


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to