[tutorial] Forgot Linux Password on WSL? Here’s How to Reset it Easily

1 message · started by Devi Garcia on Jun 27, 2021

[tutorial] Forgot Linux Password on WSL? Here’s How to Reset it Easily

From Devi Garcia · Jun 27, 2021



WSL (Windows Subsystem for Linux) is a handy tool for people who want to enjoy the power of Linux command line from the comfort of Windows.

When you install Linux using WSL on Windows, you are asked to create a username and password. This user is automatically logged on when you start Linux on WSL.

Now, the problem is that if you haven’t used it for some time, you may forget the account password of WSL. And this will become a problem if you have to use a command with sudo because here you’ll need to enter the password.

Don’t worry. You can easily reset it.

Reset forgotten password for Ubuntu or any other Linux distribution on WSL

To reset the Linux password in WSL, you have to:

  • Switch the default user to root
  • Reset the password for the normal user
  • Switch back the default user to the normal user

image.png

View original on FreeLists


Previous thread · Next thread

Back to June 2021