Run command to set user password for root:
wsl -u root
passwd root
(type new password)
Run command to set password for other users:
wsl -u root
passwd user
(type new password)
Example:
Run command to set user password for root:
wsl -u root
passwd root
(type new password)
Run command to set password for other users:
wsl -u root
passwd user
(type new password)
Example: