MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.87k stars 554 forks source link

Add to section information to reset the default user after importing a WSL distro #1965

Open adriantorrie opened 1 month ago

adriantorrie commented 1 month ago

Type of issue

Missing information

Feedback

For the section related to moving a WSL distro, please also include the information to set the default user, or at least a reference and link to Advanced settings configuration in WSL: User settings.

I had to hunt around StackOverflow to find the finishing touches to move my WSL2 distro.

The example in the "Advanced setttings" also has an example wsl.conf with the section:

# Set the user when launching a distribution with WSL.
[user]
default = DefaultUser

This information could be directly included here.

Page URL

https://learn.microsoft.com/en-us/windows/wsl/faq

Content source URL

https://github.com/MicrosoftDocs/wsl/blob/main/WSL/faq.yml

Author

@craigloewen-msft

Document Id

156d9535-c2a5-bc8d-af24-342a13832abf