OCT 7, 2023 ⦾ 1 mins read
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:
- Open Windows Powershell and type
wsl -u root - Enter
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.
