Re: [PHP] Apache user can't use exec(), passthru(), etc.

2005-03-23 Thread Jim Poserina
TED] ~]$ php test.php Content-type: text/html X-Powered-By: PHP/4.3.9 [EMAIL PROTECTED] ~]$ whoami webuser [EMAIL PROTECTED] ~]$ exit "Jim Poserina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The output is: > > OS Error: 127. > > I have a second serve

Re: [PHP] Apache user can't use exec(), passthru(), etc.

2005-03-23 Thread Jim Poserina
ually has /sbin/nologin as the shell. "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, March 21, 2005 8:20 pm, Jim Poserina said: > > If I run this PHP script: > > > echo ''; > > echo exec('whoami'); >

[PHP] Apache user can't use exec(), passthru(), etc.

2005-03-21 Thread Jim Poserina
If I run this PHP script: '; echo exec('whoami'); echo ''; ?> from the web, the output is and from the command line running as the apache user(webuser), the output is. Content-type: text/html X-Powered-By: PHP/4.3.9 But if I run from the command line as root, the output is: Content-type: text/h