I have an access server operating on an Ubuntu server. I have added to my as.conf file the following line:
Code: Select all
client-connect /home/openvpnas/scripts/on_connect.sh
However, my on_connect.sh script is not executing when users connect. I have set the script to be executable, and I am able to run it manually without issue. I am supposing my problem is a permission, but I'm not certain. I have modified the permissions on the on_connect.sh many times and tried several different permission models but no change.
I am able to validate if the script runs as it is designed to write to /var/log/syslog. This was validated as when I ran the script manually syslog was indeed updated.