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
wsl2 加一个非root用户名
最新推荐文章于 2024-08-05 16:00:40 发布