Reset User Password in Windows Subsystem for Linux (WSL) Ubuntu

Open a command prompt or PowerShell.

Then change the default user to root for the WSL Ubuntu

 ubuntu config --default-user root

Use the following command to change the former default user's password:
passwd <username>

Switch back your former user:

ubuntu config --default-user <username>


Popular posts from this blog

Check MySQL query history from command line