Okay..
I got it to work. Wow ldd and strace are rawkin my world. Great tools! I
was able to use ldd on /bin/sh to get the libraries.. but was still not
working. Then with strace on apache I was able to see the files that it
needed after that point. After a few copies.. everything is working great!
Thanks for the help.. much appreciated
pb
> m0nkey wrote:
>> Hello
>>
>> Thanks for the reply... i just got it working:
>>
>> strace -fF apache2 -D SSL -D PHP4 -D SECURITY
>>
>> Here is the output.. during the mail command. I also added a symlink in
>> jail to /bin/sh.. but that didn't fix anything:
>>
> > ...
> >
>> 14356 execve("/bin/sh", ["sh", "-c", "/usr/sbin/mini_sendmail -t -i"],
>> [/* 25
>> vars */]) = -1 ELOOP (Too many levels of symbolic links)
>> 14356 exit_group(127)
>>
>>
>> I'm guessing it's related to the symbolic links (of /bin/sh) maybe.
>> Should
>> I just copy over the binary?
>
> Yes, and whatever the binary needs (see page 43 of Chapter 2 of Apache
> Security for how to use ldd for that).
>
> --
> Ivan Ristic
> Apache Security (O'Reilly) - http://www.apachesecurity.net
> Open source web application firewall - http://www.modsecurity.org
>
>
______________________________________
Get your FREE 100MB email today at http://www.wapda.com
|