重设windows10中的子linux系统密码


  1. Run bashand make a note of your Linux username (this need not match your Windows username)
  2. In Windows admin command prompt (Super+XA) change the default user to root:

    lxrun /setdefaultuser root
    
  3. Now Bash on Ubuntu on Windows logs you in as root without asking password

  4. Use passwd command in Bash to change the user password:

    passwd your_username
    
  5. 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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM