重设windows10中的子linux系统密码
- Run
bashand make a note of your Linux username (this need not match your Windows username) -
In Windows admin command prompt (Super+X, A) change the default user to root:
lxrun /setdefaultuser root -
Now Bash on Ubuntu on Windows logs you in as root without asking password
-
Use
passwdcommand in Bash to change the user password:passwd your_username -
Change the default user back to your normal user in Windows command prompt
lxrun /setdefaultuser your_username
From http://askubuntu.com/questions/772050/reset-the-password-in-linux-bash-in-windows

浙公网安备 33010602011771号