Opened 6 years ago

Closed 4 years ago

#1120 closed User question (notabug)

Insufficient permissions to change routes

Reported by: gjf Owned by:
Priority: trivial Milestone:
Component: Generic / unclassified Version: OpenVPN 2.4.6 (Community Ed)
Severity: Not set (select this one, unless your'e a OpenVPN developer) Keywords:
Cc:

Description

After normal install OpenVPN client has no permissions to create routes:

Thu Oct 04 20:09:10 2018 ERROR: Windows route add command failed: returned error code 1
Thu Oct 04 20:09:10 2018 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Thu Oct 04 20:09:10 2018 ERROR: Windows route add command failed: returned error code 1
Thu Oct 04 20:09:10 2018 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Thu Oct 04 20:09:10 2018 ERROR: Windows route add command failed: returned error code 1
Thu Oct 04 20:09:10 2018 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Thu Oct 04 20:09:10 2018 ERROR: Windows route add command failed: returned error code 1
Thu Oct 04 20:09:10 2018 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Thu Oct 04 20:09:10 2018 ERROR: Windows route add command failed: returned error code 1
Thu Oct 04 20:09:10 2018 Initialization Sequence Completed

The problem can be solved when starting with administrator permissions - but why installer does not change it by default?

Change History (4)

comment:1 Changed 6 years ago by Selva Nair

This should not happen if OpenVPN is started using the GUI. If it does, check why the interactive service is not running.

Run as admin is not the default because 2.4.x is not supposed to be run as admin --- either use the GUI which will start it as normal user and use the interactive service for privileged tasks or set to start on boot using OpenVPNService which will start it with necessary (and some) privileges.

Advanced users who need to run from command line need to use an elevated command prompt.

comment:3 Changed 6 years ago by Gert Döring

As Selva said - if run from the GUI, route installation will be done by the interactive service (and if that is not running, the GUI will print a warning).

If run from the command line, you need to have admin privs (for that cmd.exe window).

comment:4 Changed 4 years ago by tct

Component: InstallationGeneric / unclassified
Priority: majortrivial
Resolution: notabug
Status: newclosed
Type: Bug / DefectUser question
Note: See TracTickets for help on using tickets.