By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
TechyBuff
  • How-To
  • News
  • Resources
  • Delta
Reading: How to Reset Ubuntu Password in Windows 11 WSL (Step-by-Step Guide)
Best Deals
  • Emulators
    • PPSSPP
  • Sideload
    • Scarlet
    • Flekstore
    • Sierra
    • AltStore
    • Trollstore
    SideloadShow More
    How to Enable JIT using Stikdebug on iOS 26
    September 26, 2025
    VPN setup for Custom DNS
    VPN Setup for Custom DNS in 3 Steps : Fix DNS Leaks
    July 9, 2025
    iDevice Pair: How to Generate Pairing File (2025 Guide)
    June 7, 2025
    play ps2 on iPhone
    How to Play PS2 on iPhone Using LiveContainer – The Ultimate Guide (2025)
    June 1, 2025
    Portal app iOS sideloading
    Reasons to Use Portal App for iOS Sideloading [2025 Guide]
    May 18, 2025
  • How-To
  • Troubleshoot
  • Windows OS
  • Contact
Reading: How to Reset Ubuntu Password in Windows 11 WSL (Step-by-Step Guide)
Font ResizerAa

TechyBuff

Simply Tech, No Clickbait!

  • Sideload
  • Delta
  • How-To
  • Fortnite
  • Windows OS
  • Troubleshoot
  • Resources
  • News
  • Contact
Search
  • Sideload
    • Trollstore
    • Esign
    • Sideloadly
    • feather github
    • Feather
    • AltStore
    • Sierra
    • Fortnite
    • Flekstore
    • Scarlet
  • Delta
  • How-To
  • Fortnite
  • Windows OS
  • Troubleshoot
  • Resources
  • News
  • Contact
Hyper-v activate

Effortlessly Enable Hyper-V in Windows 11 Home (Ultimate Step-by-Step Guide)

Techjunkie Aman
Techjunkie Aman
April 22, 2025
FacebookLike
InstagramFollow
YoutubeSubscribe
TelegramFollow
Follow US
© Techybuff. Techjunkie Aman. All Rights Reserved.
TechyBuff > Blog > Windows OS > How to Reset Ubuntu Password in Windows 11 WSL (Step-by-Step Guide)
Windows OSGuideHow-ToTroubleshoot

How to Reset Ubuntu Password in Windows 11 WSL (Step-by-Step Guide)

Techjunkie Aman
Last updated: September 14, 2025 8:35 pm
By Techjunkie Aman
6 Min Read
Share
ubuntu password reset
SHARE

Introduction

Forgetting a password is frustrating—but forgetting it inside Ubuntu running in Windows Subsystem for Linux (WSL) on Windows 11 can feel even worse. Unlike a typical Linux installation, where you might reset your password from a boot menu or recovery mode, WSL doesn’t give you the same options. That’s why many users panic when they realize they can’t log in.

Contents
  • Introduction
  • What is WSL in Windows 11?
  • Step-by-Step Guide to Reset Ubuntu Password in Windows 11 WSL
    • Step 1: Open Command Prompt
    • Step 2: Switch Default User to Root
    • Step 3: Launch Ubuntu as Root
    • Step 4: List Available Users
    • Step 5: Reset Password
    • Step 6: Switch Back to Your User
  • Frequently Asked Questions
    • Q1: Can I reset my password without root access?
    • Q2: Will resetting my Ubuntu password affect my Windows account?
    • Q3: What if I forget my root password?
    • Q4: Can I completely remove the password requirement?
    • Q5: Does this method work for other Linux distros in WSL, like Debian or Kali?
  • Conclusion

But here’s the good news: resetting your Ubuntu password in WSL is actually much easier than you think. All it takes is a few commands in Windows Command Prompt, and you’ll have your account back in minutes. No reinstalling Ubuntu, no losing data, and no complicated recovery process.

What is WSL in Windows 11?

WSL is a compatibility layer built by Microsoft that lets you run a real Linux environment directly on Windows—without needing a dual boot or a virtual machine. With WSL, you can install Linux distributions like Ubuntu, Debian, or Kali and run them almost natively inside Windows.

In Windows 11, WSL has become more powerful than ever:

    • It supports WSL 2, which runs a lightweight virtual machine under the hood, giving you near-native performance.
    • You can access Linux files from Windows and vice versa.
    • It’s widely used by developers for Python, Node.js, Docker, and other Linux-based tools.

If you installed Ubuntu in WSL, Windows automatically created a user account for you during setup. That account is protected by a password, which is often required when you install packages or perform administrative tasks. Forgetting it can block your workflow—but thankfully, WSL’s flexibility makes recovery easy.

Step-by-Step Guide to Reset Ubuntu Password in Windows 11 WSL

Here’s the complete process broken down into simple steps. Don’t worry—it’s much easier than it looks.

Step 1: Open Command Prompt

Press Win + R, type cmd, and hit Enter. This launches Command Prompt. Alternatively, you can search for “Command Prompt” in the Start Menu.

Step 2: Switch Default User to Root

Inside Command Prompt, enter the following command (replace (version) with your installed Ubuntu version):

ubuntu(version) config --default-user root

Example: If the version number is 24.04, then the command will be as follows – ubuntu2204 config –default-user root

This sets root as the default user, which bypasses the need for a password.

Step 3: Launch Ubuntu as Root

Now open Ubuntu from the Start Menu. Since the default user is root, you’ll log in without entering a password.

Step 4: List Available Users

To see all users, run:

ls /home

This will show directories corresponding to each user account.

Step 5: Reset Password

Choose the username you want to reset, then run:

passwd (username)

Enter and confirm a new password when prompted.

Step 6: Switch Back to Your User

Once done, go back to Command Prompt and restore your original user as the default:

ubuntu(version) config --default-user (username)

Frequently Asked Questions

Let’s address some common questions users ask about resetting Ubuntu passwords in Windows 11 WSL.

Q1: Can I reset my password without root access?

No. You must either log in as root or temporarily switch the default user to root. That’s the only way to change another user’s password.


Q2: Will resetting my Ubuntu password affect my Windows account?

Not at all. WSL users and Windows users are completely separate. Changing one has no impact on the other.


Q3: What if I forget my root password?

In WSL, the root account doesn’t require a password by default. You can always switch to root using the Command Prompt method described earlier.


Q4: Can I completely remove the password requirement?

Yes, but it’s not recommended. You could set up sudo to run without a password, but that weakens system security and increases risk of accidental damage.


Q5: Does this method work for other Linux distros in WSL, like Debian or Kali?

Yes! The process is nearly identical across distros. Just replace ubuntu(version) with the correct distribution name (e.g., debian, kali-linux).

Conclusion

Forgetting your Ubuntu password in WSL can feel like a roadblock—but as you’ve seen, the solution is straightforward. By temporarily switching to the root user, you can reset any account password in just a few steps.

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X

Like this:

Like Loading...

iOS Battery Saving Tips: How To Extend Your iPhone’s Life
MisakaX: The Ultimate iOS 17 & 18 Customization Tool [2024 Edition]
How to Downgrade iOS 26 to iOS 18 Without Data Loss [Step-by-Step]
VPN Setup for Custom DNS in 3 Steps : Fix DNS Leaks
How to Enable JIT using Stikdebug on iOS 26
TAGGED:forgot password ubuntu wslhow to reset forgotten password on ubuntu cmdhow to reset sudo password in ubuntuhow to reset wsl ubuntu passwordreset forgotten ubuntu linux password on wslreset password ubuntu command linereset ubuntu passwordreset ubuntu password windows 11reset ubuntu user password wslubuntuubuntu password resetubuntu windws wsl how to reset passwordwslwsl 2wsl 2 installwsl ubuntu password resetwsl windows 11wsl2wsl2 windows 11
Share This Article
Facebook Copy Link
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

//

We influence 20 million users and is the number one business and technology news network on the planet

Trollstore

AppDump3 Location Spoofing: Features, Devices, Installation, and Use Cases

Introduction Ever wish you could be in Tokyo, Paris, or New York without leaving your couch? That’s exactly what AppDump3’s location spoofing allows—no teleportation powers needed! Designed for TrollStore-compatible iPhones…

Techjunkie Aman
September 10, 2025

Your may also like!

How-ToGuideSidestoreTrollstore

How to Enable JIT using Stikdebug on iOS 26

Techjunkie Aman
September 26, 2025
ubuntu password reset
Windows OSGuideHow-ToTroubleshoot

How to Reset Ubuntu Password in Windows 11 WSL (Step-by-Step Guide)

Techjunkie Aman
September 14, 2025
iphone unavailable
TroubleshootGuideHow-ToWindows OS

Unlock iPhone Unavailable or Passcode Issues – Free Fix

Techjunkie Aman
August 28, 2025
TroubleshootGuideHow-To

iTunes Not Detecting iPhone? Fix It in 3 Easy Ways (Windows Users Only)

Techjunkie Aman
July 21, 2025

Quick Links

  • Privacy Policy
  • About Us
  • Disclaimer
Collab With ME

Socials

Follow US
adbanner
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?

%d