-1

How do I either recover or reset my admin password in a situation where I installed Ubuntu using the Windows Subsystem for Linux? I am running Ubuntu 20.04.1.0.

muru
  • 207,228

1 Answers1

1

Usually there just isn't a root password in WSL, since (a) your normal user has sudo rights and (b) running wsl -u root gets you full root access without a password. There's really not much of a concept of "login", except for a few special situations like SSH.

Is there something you are doing that requires a root password? You should be able to set it with wsl -u root passwd (from PowerShell or cmd), although I'm not at my PC to try it out at the moment.

If you need to reset the password of your primary user, perhaps for sudo access, then wsl -u root passwd username.

NotTheDr01ds
  • 22,082