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

Starting miktex console as administrator is not detected #128

Closed
ghost opened this issue May 9, 2018 · 8 comments
Closed

Starting miktex console as administrator is not detected #128

ghost opened this issue May 9, 2018 · 8 comments
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented May 9, 2018

No description provided.

@ghost ghost closed this as completed May 9, 2018
@ghost
Copy link
Author

ghost commented May 9, 2018

Hi,
I like to start certain programs that need it, directly in administrator mode. When I do this for the miktex console it still needs to be restarted as administrator to activate the options. Apparently the console does not check if it has administrator priviliges.
Best regards,
Paul

@ghost ghost reopened this May 9, 2018
@ghost ghost changed the title Hi, Starting miktex console as administrator is not detected May 9, 2018
@edocevoli edocevoli added this to the 2.9.6700 milestone May 10, 2018
@edocevoli edocevoli self-assigned this May 11, 2018
@edocevoli
Copy link
Member

Thank you for the repost. This has been fixed now.

@ghost
Copy link
Author

ghost commented Jun 2, 2018

I already noticed that. Thanks a lot!
Paul

@edocevoli
Copy link
Member

Unfortunately, this change seems to have a bad side-effect: if you turn off UAC, then MiKTeX Console is always started elevated. You then don't have the option to run it in user mode, if the auto-admin enhancement is in effect. I will undo this enhancement.

Please note that MiKTeX Console understands the --admin option. You can use it to start in admin mode.

@donovaly
Copy link

if you turn off UAC, then MiKTeX Console is always started elevated. You then don't have the option to run it in user mode, if the auto-admin enhancement is in effect.

What about this?: MPM is by default start with admin privileges and you see the welcome screen you see currently when starting with user privileges. But this time the screen offers you to restart in user mode. So admin users needing MPM to run only with user privileges could then so this.

@edocevoli
Copy link
Member

Good idea. Surprisingly it's not easily possible to downgrade a user session. There is no "run as user" option in Windows.

@edocevoli
Copy link
Member

Actually, command-line utilities like mpm and initexmf should not present an elevation prompt. This will be fixed (see milestone).

@donovaly
Copy link

Surprisingly it's not easily possible to downgrade a user session.

But at the moment MPM does. So why can't bne the default

  • start MPM with UAC off
  • if gthe admin wants to work in User mode, close MPM, turnung on UAC and restarting MPM

I also wonder who needs only user permissions when being logged in as admin. I mean the sense of an admin account is to administer and therefore the majority of programs start with admin permissions when executed by a user with admin permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants