-
Notifications
You must be signed in to change notification settings - Fork 834
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
"LxRun.exe /setdefaultuser" fails if temp folder is not accessible #752
Comments
First hit on Google for this error, 21 days ago and no so much as another comment?! I'm not REALLY the 2nd person who's hit this bug am I? I followed all instructions to get this far and had no other issues along the way so I don't think I caused it. I even used an elevated cmd prompt and tried My TEMP environment variable reports as Workaround: Fix: MS should check any environment variables and/or registry settings that this bash environment will be dependant on and make sure case is updated in those variables if it doesn't match. In Linux, suggesting such a thing would seem absurd since it's a standard requirement, but for a Windows user with limited bash experience, something this simple could be a real nightmare. UPDATE: Turns out that I ended up here because I didn't like C:\WINDOWS\TEMP as a temp folder (because filling up the OS folder with temp content is asinine) and I created a new one in a more sensible partition then overwrote the system variable with a user variable without considering case. |
This had the same root cause as #598 for which a fix is incoming. Marking this as a duplicate. Thanks again for reporting! |
I hit this issue when installing today. Cause was on my system C:\Temp was actually C:\temp. Had to rename directory then rerun |
Which Windows build are you on? This is fixed in recent insider builds. |
OS Build 14393.0. |
Bug occurs for me if the TEMP directory is a JUNCTION. My TEMP=C:\TEMP, where TEMP is also mounted to a different volume via Under
However, under bash,
|
@leonhui - Are you on build 14393? This will not be a problem in recent insider builds. |
LxRun.exe /setdefaultuser
will fail if Windows temp folder is not accessible, either because of privilege or unsupported file systems like RAM disk, etc.The default user should be set to the given user without any error.
An error message like:
/bin/bash: /mnt/d/TEMP/uid.txt: No such file or directory
or
/bin/bash: /mnt/c/WINDOWS/TEMP/uid.txt: No such file or directory
Note that the first error message appears when my Temp folder is on a RAM disk, and the second appears when I'm using the system-level Temp folder (C:\Windows\Temp).
10.0.14393
Set the Temp folder to a RAM disk or use the system-level Temp folder. Then execute the command:
LxRun.exe /setdefaultuser <username>
The text was updated successfully, but these errors were encountered: