su -
useradd user_name //user_name is your user name
cd etc
ls -al sudoers
sudo chmod 777 sudoers
ls -al sudoers
vim sudoers //copy root to new line, modify new line root to user_name
sudo chmod 440 sudoers
增加默认用户:
#增加默认用户为root
#admin powershell
wsl --shutdown
ubuntu1604.exe config --default-user root
wsl2 加一个非root用户名
于 2021-09-20 18:50:31 首次发布