How to Reset Ubuntu Password in Windows WSL

Super useful tip from my friend Roy

Roy Kim on Azure, Office 365 and SharePoint


You have a Windows 10 environment with WSL installed and are using a Ubuntu distribution. You forgot the password that was setup when you first setup Ubuntu. You need the password when you install software such as when doing apt install <software>.

So here’s how:

  1. Open windows command prompt.

wsl --user root

2. Change pasword for root


3. Alternatively, change password for a specific user

passwd <username>

Hope this helps.

View original post

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.