PHP expecttcl script priviledge problems

I have a PHP expect script (http://www.php.net/manual/en/expect.examples-usage.php) that connects to a SSH server and fetach a command. If I run the script from the CLI with the root user it works fine. When I run the script from the web with the www-data user it fails.

Can anybody help me getting the priviledges right for this script to execute thought the web? I have tried changing the owner and permission to 777 (test) without any luck

Sponsor our Newsletter | Privacy Policy | Terms of Service