route-pre-down error: script or parent directory not secure
Posted: Thu Sep 14, 2017 12:50 pm
I've followed the instructions at https://www.sparklabs.com/support/kb/ar ... ect-occurs and things worked fine before upgrading to 1.7.4.
I had to re-execute "/Applications/Viscosity.app/Contents/MacOS/Viscosity -setSecureGlobalSetting YES -setting AllowOpenVPNScripts -value YES", but I'm getting the following error in the connection log now:
I had to re-execute "/Applications/Viscosity.app/Contents/MacOS/Viscosity -setSecureGlobalSetting YES -setting AllowOpenVPNScripts -value YES", but I'm getting the following error in the connection log now:
2017-09-14 12:32:35: Connection is reachable. Starting connection attempt.However, the permissions look fine to me:
2017-09-14 12:32:35: Error: The OpenVPN script or one or more of its parent directories is not secure. Please ensure that the script and all parent directories are only writable by the root user, or enable the "Allow unsafe OpenVPN commands to be used" option.
2017-09-14 12:32:35: Could not start connection: Status failure.
Code: Select all
I've double checked that this is the path of the script in the connection preferences:
> stat "/Library/Application Support/ViscosityScripts/disablenetwork.py"
16777220 41467709 -rwxr-xr-x 1 root wheel 0 473 "Sep 14 12:21:30 2017" "Aug 5 21:13:55 2017" "Sep 14 12:30:35 2017" "Aug 5 21:01:48 2017" 4096 8 0 /Library/Application Support/ViscosityScripts/disablenetwork.py
> stat "/Library/Application Support/ViscosityScripts"
16777220 41467698 drwxr-xr-x 3 root wheel 0 102 "Sep 14 12:31:43 2017" "Aug 5 21:01:48 2017" "Sep 14 12:30:35 2017" "Aug 5 21:01:38 2017" 4096 0 0 /Library/Application Support/ViscosityScripts
> stat "/Library/Application Support"
16777220 27977229 drwxr-xr-x 24 root admin 0 816 "Sep 14 12:44:15 2017" "Aug 5 21:01:38 2017" "Aug 5 21:01:38 2017" "Sep 14 10:52:05 2016" 4096 0 0x100000 /Library/Application Support
> stat "/Library"
16777220 27977227 drwxr-xr-x 61 root wheel 0 2074 "Sep 14 12:44:20 2017" "Mar 14 21:25:45 2017" "Mar 14 21:25:45 2017" "Sep 14 10:52:48 2016" 4096 0 0x100000 /Library
Code: Select all
How can I fix this without allowing unsafe OpenVPN commands?route-pre-down "/Library/Application\\ Support/ViscosityScripts/disablenetwork.py"