Stefan Klingner schreef:
> i try to run a command like "ls /" from a php script inside a jail. the 
> jail was created with jailkit and contain the tool + all required 
> libaries. if i write exec("ls /"); in a php script, it returns nothing. 
> have someone an idea? possibly the processor do not have the path or do 
> not know how to find the executable?
>
>   
Would you please try:

passthru('echo $PATH'); // output should contain /bin; if not: the shell
interpreter can not find 'ls'; and you have to specify it as '/bin/ls'.
passthru('ls -l /bin/sh'); // might give info about executability

And of course check whether safe-mode is off ;)

-- Jille
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to