References: <57A3C76A.1020809@...277...> <76eb908d-b7b3-7425-5340-e4cd5726fbd1@...2080...> <3642cff2-6233-0a28-2a39-36513f008ab4@...277...> <20160823123439.GA78279@...1296...> <57BD5780.2030204@...1147...> <57BD64D9.8010607@...1147...> From: debbie10t Message-ID: <588b5e2c-42f2-9f10-d0c9-d43d9592e403@...277...> Date: Wed, 24 Aug 2016 11:30:00 +0100 MIME-Version: 1.0 In-Reply-To: <57BD64D9.8010607@...1147...> Subject: Re: [Openvpn-devel] Win10 Tun Server +Standard W10 User +OVPN Interactive Service +OVPN GUI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="windows-1252"; format="flowed" Content-Transfer-Encoding: quoted-printable To: openvpn-devel@lists.sourceforge.net On 24/08/16 10:11, Jan Just Keijser wrote: > Hi, > > On 24/08/16 10:45, Samuli Sepp=E4nen wrote: >> Il 24/08/2016 11:14, Jan Just Keijser ha scritto: >>> Hi, >>> >>> On 23/08/16 14:34, Gert Doering wrote: >>>> On Tue, Aug 23, 2016 at 01:55:23AM +0100, debbie10t wrote: >>>>> I need to use --up/--down/--client-connect/disconnect et al .. >>>> You can, but they will run with the user privileges of the user that >>>> runs openvpn-gui by default. If you need more privileges, you need >>>> to run openvpn.exe or the gui with admin privs. >>>> >>>>> How does one run openvpn on *windows* without these "considered" >>>>> security flaws ? or are we all just "lambs to the slaughter" >>>>> from here on in ? >>>> You can use openvpnserv2 to run openvpn.exe with admin privs (and no >>>> gui), or you can set [x] run as admin on the openvpn-gui (as it was >>>> done >>>> for 2.3.x). >>>> >>>> Most people on windows only need privileges to add/delete routes and >>>> configure IP addresses - this is what the iservice will give you, >>>> without >>>> the potential dangers of running openvpn and all scripts with full >>>> admin privs. >>>> >>> just for my understanding: how would a user run an up/down script with >>> *USER* credentials (necessary to map a share or printer, for example) in >>> this scenario? >> You mean when running OpenVPN-GUI as admin, but wanting the map a >> share as a non-privileged user? >> > Actually, how would a (clueless) user do this at all, using the > interactive service? which part should be run with admin privs, which > part shouldn't ? which credentials are available to the interactive > service (and any up/down scripts it may run) ? should a user use a GUI > up/down script (I know the old GUI supported this) instead? > > An --up to map a network drive would work with user creds. eg: net use x: \* My initial problem was running server side scripts which are intended to do more complex stuff. But run-as-admin for the GUI is totally sufficient for my needs. I simply did not understand that the scripts are run as the user who loaded the GUI not the iservice. thanks