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

Where are my Windows files on Windows Linux Bash?

You'll find the Windows C:\ structure at /mnt/c/ in the Bash environment.

Therefore, USERNAME's Documents directory is located here: 


Where are my Ubuntu Bash files in Windows 10?

In Ubuntu Linux Bash for Windows, the Ubuntu file system root directory




Replace the Username with your Username on Windows.


The Ubuntu system files are stored at:



Your Ubuntu user account’s home folder is stored at:



The root account’s home folder is stored at:



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 a message.
Please check your message for any errors.
Your message has been sent successfully.
Sorry, an error occured sending your message.
* required