If you are using WSL in Windows and forgot your username's password, it's quite easy to change it. Follow the steps below:
- Open Windows Powershell and type
wsl -u root
passwd USERNAME- here replace USERNAME with the ubuntu username for which you want to change password.
- Type the New password.
Now your ubuntu user's password is successfully changed.