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

why is HKEY_USERS\.DEFAULT\Environment Path modified by the sdk setup? #1942

Closed
rgl opened this issue Sep 14, 2018 · 1 comment
Closed

why is HKEY_USERS\.DEFAULT\Environment Path modified by the sdk setup? #1942

rgl opened this issue Sep 14, 2018 · 1 comment

Comments

@rgl
Copy link

rgl commented Sep 14, 2018

why is the HKEY_USERS\.DEFAULT\Environment Path registry key value (of the SYSTEM account) modified by the sdk setup?

before installing the sdk, the registry is:

image

then after installing the sdk, the registry is changed into:

image

As you can see it modified the value and its type. Why?

This is causing me problems in this scenario:

  1. I'm running the Win32-OpenSSH windows service (which runs as SYSTEM)
  2. I login into the jenkins account tru the Win32-OpenSSH service
  3. I notice that the PATH is inherited from the SYSTEM account PATH
  4. I execute the cake build script (which will be running in the jenkins account)
    4.1. It iterates the PATH environment variable and crashes because it does not have permissions to iterate any of the C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps or C:\Users\vagrant\.dotnet\tools directories (because they can only be used by the vagrant user -- the user that installed the dotnetcore sdk).
@Petermarcu
Copy link
Member

Issue moved to dotnet/cli #10038 via ZenHub

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

2 participants