-
Notifications
You must be signed in to change notification settings - Fork 166
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
Running Anaconda 2024.06-1 installer on Windows for "Just Me" messes with installation folder permissions #872
Comments
This is a very strange situation indeed. As far as I understand it, Unless I overlooked something, the lines you mention are the only instance where The question is whether you acquired admin privileges during the installation (which would be very concerning) or whether you started the installation as administrator, so I have a few questions for you:
|
(Note that I am trying to install Anaconda/Miniconda to a non-default file path, if that makes a difference) Other things I have tried with the Miniconda installer (the full Anaconda installer takes too long to run to completion for testing purposes) are:
All give the same (unwanted) end result. The only workaround I can find for now is to create the install folder in advance, manually explicitly set my user account to have Full Control, then run the installer. Installation still takes a very long time, because the installer is unnecessarily messing with permissions, but at least this way the installer does not revoke my permissions. It is still unknown how the installer is able to revoke and set permissions in the first place. |
I have never seen it make a difference, but there may be an edge case here. Can you disclose the location without giving away personal/company information? There is a simple workaround either way. The current code checks whether the user is administrator, but intent is more important. So, changing @jaimergp, do you see any risk here? I don't see a reason for using |
The non-default path is just I assume the change should be |
After some more investigating, this would unfortunately re-introduce the CVE this part of the code was trying to fix. If you run the installer as administrator and install and run a Can you confirm that you saw the "Setting installation directory permissions..." line when you installed Miniconda into an empty I will try and get on a system with multiple drives to reproduce the error. |
Yes, I confirm that I saw that line when trying to install Miniconda into a previously-created empty Thanks for following up on this, it is very much appreciated. |
Apologies for the delay, I was finally able to test it on a machine with two hard drives. I installed the latest Miniconda (24.9.2) into |
Thanks for trying to reproduce the issue. As the machine I ran into the problem on is managed by my organisation, I am unable to get any more insight into what quirk of configuration exactly gives NSIS the wrong impression. I'll close the issue for now. |
Checklist
What happened?
I'm trying to install Anaconda 2024.06-1 on Windows using the official installer, in graphical mode, for "Just Me", but towards the end of the installation the installer shows
Setting installation folder permissions...
, and after a very long time it finishes, having revoked my write permissions to the Anaconda installation folder. I am thus unable to install or update any packages on thebase
environment, which is annoying. Checking theconstructor
source code for this string shows that this step shouldn't even run if the installer was not running with UAC elevation. At no other point in the installation does this conditional check for UAC elevation succeed (i.e., it proceeds as if it was a "Just Me" installation). A very strange situation.Note that this appears to be a different issue from #828, where the installer was custom-built rather than an official release, was running as
SYSTEM
, and was run in the "All Users" installation mode.The code in question that changes file permissions, found in
constructor/constructor/nsis/main.nsi.tmpl
:Additional Context
No response
The text was updated successfully, but these errors were encountered: