How do I change the default user in wsl2?

Bờm

Member
How do I change the default user in wsl2?
Answer
Specifically go to:
  1. Find your UID for your username in your Linux distro typing in the command id -u <yourUserName> . …
  2. Open registry edit and navigate to HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionLxss{MY-UUID} . …
  3. Replace the DefaultUid value with the UID value of the user in your distro.
 

Tìm kiếm

Back
Top