-
Notifications
You must be signed in to change notification settings - Fork 822
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
Home directory mixup #3390
Comments
Each distribution has its own /etc/passwd file. Think of each distribution you download as a completely separate environment with its own users, packages, and filesystem. |
|
Remains a good question. But as a practical matter, with the Distros currently shipping in the Store, you can get an idea with |
Uninstall the app. Alternitively you can use wslconfig.exe:
|
It looks like
|
Precisely why I avoided your third question.
YRMV |
Let me rename this issue to that :D Will try deleting C:\Users<you>\AppData\Local\Packages\CanonicalGroupLimited* later. |
I've done the following and it still doesn't fix the issue:
cat /etc/passwd displays user02 ie. Same issue as reported This data must either be in /tmp or in registry |
Then uninstall everything and delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss |
I don't understand what is happening here. /etc/passwd is a unique file in each distribution's filesystem which is located in their distinct app data directory. I can't reproduce this locally, so there must be some additional step that I'm missing. |
@onomatopellan I did the following:
No change. |
@benhillis On the first distro install I may have hit escape while in the shell command. I can't remember exactly which step. It was waiting for user input (I think) rather than executing something. I may have accidentally hit escape. That is the only thing I can think of that is out of the ordinary. |
What is your process for logging in as a different user? Are you starting the same every time (clicking on an icon, running wsl.exe) and then running su? Does nano /etc/passwd look like cat or tail? Can you do a quick check of 'alias tail; alias cat; which tail; which cat' to make sure nothing looks out of the ordinary? |
Something strange. |
After install, I create a user, in this example, user02. To start WSL, i usually start cmd/powershell/conemu then type
|
Actually I copied that key from another machine just to show the string pattern. The actual key is different and as far as I could tell changed every install. |
I don't think you will be able to reproduce simply by uninstalling then installing. I think there is some significance that Ubuntu was installed first then Ubuntu 18.04. If you installed 18.04 first, then uninstalled 18.04, then followed my steps, it is possible you won't be able to reproduce. When I have time, I may be able to do a system refresh and try install Ubuntu 18.04 first then Ubuntu and see if there is difference. |
Windows Version
10.0.17134 (Build 17134)
Summary
WSL gets home directory mixed up when more than one distro and user is created
How to replicate
On further investigation I found /etc/passwd was different when logged in as user02 and root
Logged in as user02:
Logged in as root:
Further, and what is more perplexing, when logged in as user02, using
tail
will return a row for user01 (none for user02)What I expect
The text was updated successfully, but these errors were encountered: