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

相关文章:

  • 2021-11-21
  • 2021-09-27
  • 2021-04-04
  • 2021-08-04
  • 2021-05-27
  • 2021-08-27
  • 2021-04-09
猜你喜欢
  • 2021-06-05
  • 2021-12-16
  • 2021-11-01
  • 2021-12-14
  • 2021-11-12
  • 2021-06-06
  • 2022-02-17
相关资源
相似解决方案