Windows Subsystem for Linux(WSL) Reset password
Posted on October 06, 2022 in OS • Tagged with WSL, Windows11, Password, WSL2
Windows Subsystem for Linux (WSL2) Reset Password
- Open cmd.exe
- wsl -u root
- passwd root
- Enter New password
- Renter New password
- exit
- wsl
- Test using sudo echo "test" , you should see "test" message