Hello,
I am having a problem on my server: if I use a script when a user connects, a temporary file is created (this is normal behavior), but after, the file is not deleted.
My server config includes:
client-connect <script>
client-disconnect <script>
I am running the server under Windows.
The script file is a batch file and I am not using the temp file at all in my script.
The problem is reproduced even if all the script does is echo someting (ECHO %username%).
The output of the server is:
<date> <client IP> [VPN-Client] Peer Connection Initiated with <client IP>
<date> VPN-Client/<client IP> MULTI: problem deleting temporary file: C:\DOCUME~1\<user>\LOCALS~1\Temp\\openvpn_cc_ebb2175acac7cf102257182cbff7c90a.tmp
I observed that the temp file is marked as read-only. Is this normal behavior?
The file is not locked (at least not after the client connects), I can manually delete it. Since I can delete it, I presume that it isn't automatically deleted because of the read-only attribute.
I am using OpenVPN version 2.2.2 both on the server and on the client.