重設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