Root password of windows 10 WSL Ubuntu system

The root password for Windows 10 WSL Ubuntu system
After installing Ubuntu, you realize that you do not have a root password. If you do not know the password, you will not be able to access the root user.
to the search on the net, the original is the way it is:
the Ubuntu’s default root password is random, namely each have switched on a new root password.
we can command in a terminal input sudo passwd , and then enter the current user password, the terminal will be prompted to enter a new password and we confirm that the new password is root password.
> root>> code>>
> su root>
>
> su root> >
Reprinted from: https://www.jianshu.com/p/e43e11d6ba09

Read More: