I'm running
OpenVPN 2.2.1 i486-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Jul 1 2011
installed from a deb provided on openvpn.net.
Upon client connect, I see "WARNING: Failed running command (--client-connect): could not execute external program". The relevant lines from the config are:
30 script-security 3
31 client-connect "/usr/local/bin/ovpn_connect.sh"
32 client-disconnect "/usr/local/bin/ddns.sh delete"
If I remove the client-connect line, the client connects successfully. OpenVPN is running as root:
root 21460 1 0 12:04 ? 00:00:00 /usr/sbin/openvpn --writepid /var/run/openvpn.vpn.flash.org.uk-server.pid ...
The script exists, and anyone can run it. All it does is return 0:
root@arthur:~# ls -l /usr/local/bin | grep ovpn
-rwxr-xr-x 1 root root 192 2011-08-24 12:12 ovpn_connect.sh
root@arthur:~# cat /usr/local/bin/ovpn_connect.sh
exit 0
Permissions on /usr/local/bin allow anyone to read and execute, and anyway, OpenVPN is running as root. Here's where it gets weird: if I run OpenVPN under strace, there is no mention of the script. It looks like there is no attempt to run the script. Yet clearly it decided it couldn't run it, implying it did try. Can anyone make a suggestion?
Thanks.