1. Veera
  2. 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.

Written by

Veerasundar profile photo

Hey, I'm Veerasundar.
Senior Full Stack Developer

I build scalable web applications and engineering teams. Over the last 20 years, I’ve worked across frontend engineering, full stack development, architecture, and engineering leadership.

See my Resume