Skip to content

Instantly share code, notes, and snippets.

@seanw122
Last active March 7, 2021 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanw122/25fe8a810c25aa681f083a36d5ce4f95 to your computer and use it in GitHub Desktop.
Save seanw122/25fe8a810c25aa681f083a36d5ce4f95 to your computer and use it in GitHub Desktop.
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