ID: 38358
Updated by: [EMAIL PROTECTED]
Reported By: totooo_hegab at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
PHP Version: 4.4.3
New Comment:
What is the exact output you get with
<?php
var_dump(exec("/home/vpopmail/vuserinfo [EMAIL PROTECTED]", $var));
var_dump($var);
?>
?
Previous Comments:
------------------------------------------------------------------------
[2006-08-07 06:52:38] totooo_hegab at yahoo dot com
yes the command works will on the console
what will i do then?!!
------------------------------------------------------------------------
[2006-08-06 16:43:00] [EMAIL PROTECTED]
Did you try to login as vpopmail user and run this command in console?
------------------------------------------------------------------------
[2006-08-06 15:56:55] totooo_hegab at yahoo dot com
the server runs at linux
i tried all the probabilities, so i think it is from php
------------------------------------------------------------------------
[2006-08-06 15:53:05] [EMAIL PROTECTED]
What OS do you use and why do you think it's PHP issue?
------------------------------------------------------------------------
[2006-08-06 15:38:55] totooo_hegab at yahoo dot com
Description:
------------
i am trying to execute a command, i used "exec" and "system" and ` `
functions they worked well for example exec("ls",$var) and echo
system("ls")
when i tried to execute the following command
exec("/home/vpopmail/vuserinfo [EMAIL PROTECTED]",$var)
the following appears: "unable to set uid"
note that:
The appache2 web server runs as "vpopmail" user
vuserinfo: used to return details about [EMAIL PROTECTED]
the permissions of the script vuserinfo is: 751
the ownership of the script vuserinfo is: vpopmail
the group of the script vuserinfo is: vchkpw
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38358&edit=1