Reset the Password in Linux Ubuntu Bash in Windows 10

For those who setup Ubuntu Linux Bash on Windows 10 but forgot what password they used. I set this up quite a while ago on a computer that I seldom use, and I needed to reset my password. Here are the steps I found from Ask Ubuntu.

  1. Run bashand make a note of your Linux username (this need not match your Windows username)
  2. In Windows admin command prompt (Super+X, A) 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

windows 10 change password linux ubuntu


Visit sunny St. George, Utah, USA

Get In Touch

We would love to hear from you.

Please enter your email address.
Please enter a valid email address.
Please enter the verification number.
You have entered a wrong verification number.
Please enter a message.
Please check your message for any errors.
Your message has been sent successfully.
Sorry, error occured this time sending your message.
* required