How to Reset a Forgotten Password in Ubuntu WSL Windows 11

Опубликовано: 17 Май 2026
на канале: CodeA4dr
53
3

🔐 Forgot your Ubuntu password in WSL? Don’t panic this quick guide will help you reset it in just a few minutes! 💻

In this video, I’ll show you step-by-step how to:
⚙️ Open Terminal as Administrator - Right-click the Start button.
Choose Windows Terminal (Admin).

📋 Find your installed Linux distributions - List Your Installed Linux Distributions
Command: wsl -l -v

🧑‍💻 Launch Ubuntu as root
Replace YourUbuntuDistro with your distribution's name
Command: wsl -d (YourUbuntuDistributor) -u root

🔑 Reset your forgotten user password
Identify Your Username
Command: ls/home

Reset Your Password
Command: passwd (yourusername)

🚪 Exit root and restart Ubuntu Terminal

⏱️Time stamps
0:00 - Intro
0:36 - Open Terminal as Administrator
0:47 - Find your installed Linux distributions
0:54 - Launch Ubuntu as root
1:13 - Reset your forgotten user password
1:46 - Exit root and restart Ubuntu Terminal

#CodeA4dr #UbuntuWSL #TechTips #PasswordReset #TechTutorial