On Wed, 18 Nov 2009 14:23:42 -0600
Matthew Young <myoung24...@gmail.com> wrote:

> Hello,
> 
> 
> Iam running the apache in base 4.5 with the chroot.
> 
> Iam trying to run this simple script (as a test) but I cannot make it
> to output anything...
> 
> 
> I have done a cp /usr/bin/whoami /var/www/bin/ , made sure that
> ownership is root:daemon, and permissions are 600, i have even tried
> 777
> 
>  i have tried the following combinations:
> 
> <?php echo exec('whoami 2>&1'); ?>
> <?php echo exec('/bin/whoami'); ?>
> <?php echo exec('/var/www/bin/whoami'); ?>
> <?php echo exec('(whoami)'); ?>
> <?php echo exec('./bin/whoami'); ?>
> 
> 
> No go, no output.
> 
> What could

# ktrace whoami
[...]
# kdump ktrace.out
 25471 ktrace   RET   ktrace 0
 25471 ktrace   CALL  execve(0x7f7fffff8690,0x7f7fffff8c08,0x7f7fffff8c18)
 25471 ktrace   NAMI  "/usr/bin/whoami"
 25471 ktrace   NAMI  "/bin/sh"
[...]
# ls /var/www/bin/sh
ls: /var/www/bin/sh: No such file or directory

- Robert

Reply via email to