将WSL的默认用户更改为ROOT cmd命令以root进入wslwsl-dUbuntu-uroot在wsl中输入printf[user]\ndefaultroot\n/etc/wsl.conf退出wsl。在cmd中输入wsl--shutdown打开wsl即为默认root