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

Initial user creation fail because of password missmatch create another user with uid 1001. #217

Open
arsenicks opened this issue Feb 12, 2024 · 1 comment
Labels
bug Something isn't working to implement

Comments

@arsenicks
Copy link

Describe the bug
During the first boot you have to create the local user, if you fail the password Ex. password missmatch, the user is still created but the whole "user creation process" restart, so if you enter the same username you get an error stating th ueser already exist, if you choose another username the process continue but create a new user with UID 1001 for example.

This will create problem later on because the /etc/wsl.conf the uid 1000 is referenced in the options section and the person will probably try to use the second user because there's no password set on the first user created..

To Reproduce
Steps to reproduce the behavior:

  1. Fresh install using the msixbundle
  2. When prompted for a user enter user1
  3. Write '"Passwd1" as a password and when prompted to reenter, enter "Passwd123"
  4. See error
  5. When the process restart enter user2 for user name
  6. enter password and reenter password correctly this time.
  7. continue the process untill you have the shell
  8. type "id" to see your UID/GID
  9. '$ cat /etc/wsl.conf'

Expected behavior
The user should not be create if the password verification fail OR we should loop in a subfunction to set password untill successfull.

Screenshots
The magic happen here:
https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/blob/master/DistroLauncher/DistributionInfo.cpp#L52-L88

Additional context
Unfortunately I cannot create another fresh fedoraremix install for some reason the msixbundle offer me to upgrade so I cannot confirm everything but this is what we just experienced. This has lead to a lot of problem for the user because he was trying to install/run wsl-vpnkit but was getting weird permission denied on wsl.exe.

We fixed this by setting a correct password on the first user, adjusting the default user in '/etc/wsl.conf' and everything worked as expected. I'm rushing this report before forgetting information I lack screenshots and other info because I can't report from my job laptop, sorry about that.

Basic Troubleshooting Checklist

[X] I have searched Google for the error message.
[X] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[X] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[X] I have searched the WLinux issues page: https://github.com/WhitewaterFoundry/WLinux/issues.
[X] I have reset WLinux: Settings->Apps->Apps & features->WLinux->Advanced Options->Reset.
[X] I have disabled and re-enabled WSL in Windows Features.
[X] I have run Windows 10 updates and restarted.

What other troubleshooting have you attempted?

Insert here:

Fedora Remix for WSL Version

FEDORA_REMIX_VERSION=39.0.1

Insert here:

Windows Build

Windows V 10.0.22621 N/A build 22621

@crramirez
Copy link
Contributor

Hello @arsenicks

Thanks a lot for the detailed reporting. We will put it in the queue.

Regards

@crramirez crramirez added bug Something isn't working to implement labels Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to implement
Projects
None yet
Development

No branches or pull requests

2 participants