How to reset WSL 2 user’s password?
You can easily reset WSL 2 users’ password, by just following the following steps.
- Open PowerShell or Terminal run following command.
- `wsl -u root (you will login as root user`
- passwd <username> (change <username> to username for which you want to change password).
You will be asked to enter the password twice and password will not be appear on screen/terminal.
Following is the image for reference.
Hope this will help!