Do you have /bin/sh inside your jail?

On Thu, 27 Nov 2003, th3 th1nk3r wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> I have a great problem. I hava an apache 1.3.28 + php 4.3.3 installation into 
> a chroot jail in my Linux box. Into the jail I have installed postfix (with 
> his sendmail executable) and I can send mails with it (I run it like a chroot 
> user to test it). But, with a simple script like this doesn't work:
> 
> <?php
> if(mail("[EMAIL PROTECTED]","hello world!!","Msg"))
>     echo "OK";
> else
>     echo "Opsss!!!";
> ?>
> 
> If I run apache from outside the jail, the scripts runs perfectly and send the 
> mail, but inside it doesn't send anything (php don't exec the program 
> sendmail).
> I have the same config in and out the jail, the execs have root like owner (I 
> have test it with apache like owner, but doesn't work) I have test it with 
> safe_mode on and off, with safe_mode_exec_dir and sendmail_path, but don't 
> work.
> 
> The run functions like exec, don't work. I'm curious because don't work inside 
> and outside the jaul, but the mail function works outside. I have test it 
> with a script that works in an old install of php.
> 
> The mail perhaps could function with sockets and contacting the localhost smtp 
> server, but I continu with the exec problem. I think of it like a security 
> problem, because I don't know why is failing.
> 
> Any Idea? suggestions?
> 
> sorry for my bad english, and thanks ;)
> Byez
> - -- 
> - -----------------------------------------------------------
>   Jabber ID: [EMAIL PROTECTED]
>   GNU/Linux User# 266578
>   http://www.blacklord.net/
> 
>  -----BEGIN GEEK CODE BLOCK-----
>   Version: 3.1
>   GCS/CM d-- s: a? C++++ UL+++ P >++ L+++ E--- W+++ N-- o-- K--- w--- O M- V- 
> PS+++ PE-- Y++ PGP+++ t+ 5+ X+++ R+++ tv-- b++ DI++ D++ G e+++ h r++ y+
>  ------END GEEK CODE BLOCK------
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> 
> iD8DBQE/xU2pXlg6KvYpupERAlDrAJ9Wc7UW7gEj8dJViFQG1g38lOcV+gCgkrIg
> 4Ysp0QFLZruAWlWh4pBs9Qs=
> =RiOv
> -----END PGP SIGNATURE-----
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to