Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run as admin still required in 2.4 despite docs? #129

Closed
RoxKilly opened this issue Feb 7, 2017 · 3 comments
Closed

Run as admin still required in 2.4 despite docs? #129

RoxKilly opened this issue Feb 7, 2017 · 3 comments

Comments

@RoxKilly
Copy link

RoxKilly commented Feb 7, 2017

The docs mention that as of OpenVPN 2.4 (GUI 11.4.0.0), the GUI no longer needs to be run as administrator so long as the OpenVPN Interactive Service is running.

However, I am unable to test this because whenever I run C:\Program Files\OpenVPN\bin\openvpn-gui.exe, it asks permission to run as admin as it did for previous versions.

I've tried to open the EXE file properties and change this requirement, but the box "Run as admin" is checked and read-only, even when I edit properties from an Admin account (see the last checkbox in the attached image)

6
.
I'm using Windows 7 x64, and I upgraded in-place from 2.3.12 (GUI 10)

@mattock
Copy link
Member

mattock commented Feb 7, 2017

@RoxKilly : "Run as admin" is not required. That said, I have no clue why "Run this program as an administrator" is grayed out for you. If you're an admin, you should be able to reset the flag.

Very recently we had a discussion regarding the "Run as admin" flag for OpenVPN GUI. The thing is that one can set the flag from two places:

  • The shortcut
    • "Run as admin" flag stored in the shortcut file itself
  • The executable
    • "Run as admin" flag stored in the registry

The shortcut flag probably gets erased when OpenVPN is upgraded, but the executable flag does not. I could not find the original discussion - @selvanair : any idea where it is?

@selvanair
Copy link
Collaborator

selvanair commented Feb 7, 2017

@RoxKilly: To add to what mattock wrote, the installer does not set the run as admin flag on the executable or shortcut. However, if you had a previous installation where you had set the executable to run as admin, it could survive after a new install. For a discussion of this issue see https://community.openvpn.net/openvpn/ticket/811

To remove the flag you have two options:
(i) As administrator, right click on the executable, got to properties and click the button "change settings for all users" as seen on the screenshot you posted. Then you will get a dialog where you can remove the run-as-admin flag.
(ii) Uninstall and reinstall openvpn

Going forward do not set either the shortcut or exec to run as admin.

EDIT: Option (ii) may not work, I had forgotten the details.

@RoxKilly
Copy link
Author

RoxKilly commented Feb 8, 2017

@selvanair @mattock thanks for your help. It is useful to know that the flag was not set by OpenVPN. The admin flag was set on the exe, not the shortcut. Perhaps I had set it when I first started using OpenVPN a couple of years back I don't remember.

Using "Change settings for all users" to uncheck "run as admin" made no difference. The program still prompted for admin priviledges, and in exe properties >> compatibility, the "Run as admin" checkbox was still checked and greyed out (so cannot be unchecked).

To get things to work, I needed to:

  1. change my user account from standard user to admin user
  2. restart the PC (this is the step I had missed)
  3. Now the checkbox is no longer greyed out, so I could uncheck it.

Remember to change the user account back to standard user.

Feel free to close the issue.

@RoxKilly RoxKilly closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants