Last active
March 7, 2021 20:30
-
-
Save seanw122/25fe8a810c25aa681f083a36d5ce4f95 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Change password on WSL | |
Close Ubuntu if running | |
From CMD prompt | |
ubuntu config --default-user root | |
Note, if you get response that command not found, try more specific version: | |
ubuntu1804 | |
ubuntu2004 | |
Start Ubuntu | |
At prompt (change your-username to the actual name of password to change) | |
passwd your-username | |
Close Ubuntu | |
From CMD prompt | |
ubuntu config --default-user your-username | |
Restart Ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment