Reset password for Ubuntu app on Windows

If you are using Ubuntu App on Windows 10 and forgot the sudo password, then do the following things. It will provide the facility to reset the password.
  • In Windows admin command prompt change the default user to root:
         ubuntu config --default-user root
  • Use passwd command in Bash to change the user password (the user whose password you want to reset):
    passwd your_username
  • Change the default user back to your normal user in Windows command prompt
          ubuntu config --default-user your_username



Comments