DEV Community

Cover image for Reset wsl user's password
Flavio Campelo
Flavio Campelo

Posted on

Reset wsl user's password

📮 Contact 🇧🇷 🇺🇸 🇫🇷

Twitter
LinkedIn


Reset wsl user's password

Open cmd.exe

# Display a list of distros.
wsl -l 

# Open a connects at distro with a specified user
wsl -u my-user -d my-distro

# Change user password
passwd my-user

# Quit distro
exit
Enter fullscreen mode Exit fullscreen mode

Typos or suggestions?

If you've found a typo, a sentence that could be improved or anything else that should be updated on this blog post, you can access it through a git repository and make a pull request. If you feel comfortable with github, instead of posting a comment, please go directly to https://github.com/campelo/documentation and open a new pull request with your changes.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay