The Windows Subsystem for Linux (WSL) defaults to running as the “root” user. In order to change that behavior, just create a Linux user.Let’s imagine this user is named “jdoe”. To have WSL start the session as “jdoe” instead of “root”, just run the following command from a “cmd.exe” window:
C:\Users\JohnDoe> lxrun /setdefaultuser jdoe
Take into account that running any running WSL will be killed inmmediately.