Created
September 15, 2022 07:29
-
-
Save mikerodionov/dbdfd2fd2d65816bfda0f881415f17d4 to your computer and use it in GitHub Desktop.
WSL Password Reset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In elevated CMD switch WSL distro default user to root (adjust distro name as necessary) | |
ubuntu2204 config --default-user root | |
# Open WSL session - it will be opened with root user, set password for your user | |
passwd username | |
# Switch your default distro user back to your user from elevated cmd window | |
ubuntu2204 config --default-user username |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment