How to Reset a Forgotten Password in Ubuntu WSL

Step:1

Close WSL:

wsl --shutdown

Step:2
Open PowerShell as Administrator:

Step:3

Find your WSL instance name:

wsl -l -v


Step:4

Launch WSL into root:


wsl -d <YourDistroName> -u root

Step:5

Reset the password:

passwd <YourUsername>


Step:6

Exit and restart WSL:

wsl --shutdown

Step:7

Log in with the new password:


#tags

  • "Forgot Your Ubuntu WSL Password? Here's How to Reset It"
  • "Step-by-Step Guide: Resetting a Forgotten Password in Ubuntu WSL"
  • "Recovering Access: How to Reset a Lost Password in Ubuntu WSL"
  • "Quick Fix: Resetting Your Forgotten Ubuntu WSL Password"
  • "Regain Access to Ubuntu WSL: Resetting a Forgotten Password"
  • "How to Easily Reset a Forgotten Password in Ubuntu WSL"
  • "Ubuntu WSL Password Recovery: A Simple Guide"
  • "Locked Out of Ubuntu WSL? Steps to Reset Your Password"
  • "Troubleshooting Ubuntu WSL: Resetting a Forgotten Password"
  • "Unlocking Your Ubuntu WSL: How to Reset a Forgotten Password"


  • Comments

    Popular posts from this blog

    SAMBA SERVER 2.0 #server

    Setup SSH for accessing outside from network

    Speech tools - espeak and festival etc.