...
- In the Linux CLI type passwd and press the Enter key.
- Follow the prompts and enter a new password and press Enter. Retype the new password to confirm it and press the Enter key to change the root user password.
Microsoft documentation:
Windows Subsystem for Linux Installation Guide for Windows 10