Veera / Blog

How to change Windows Subsystem Linux (WSL) user password

If you are using WSL in Windows and forgot your username's password, it's quite easy to change it. Follow the steps below:

  1. Open Windows Powershell and type wsl -u root
  2. Enter passwd USERNAME - here replace USERNAME with the ubuntu username for which you want to change password.
  3. Type the New password.

Now your ubuntu user's password is successfully changed.