Windows Subsystem for Linux(WSL) Reset password

Posted on October 06, 2022 in OS

Windows Subsystem for Linux (WSL2) Reset Password

  1. Open cmd.exe
  2. wsl -u root
  3. passwd root
  4. Enter New password
  5. Renter New password
  6. exit
  7. wsl
  8. Test using sudo echo "test" , you should see "test" message