Notes
Change forgotten Ubuntu password inside WSL
resetting a forgotten Ubuntu password inside WSL by making root the default user from cmd.exe and running passwd
Ubuntu
- Open
cmd.exeand runubuntu2004 config --default-user root - Now run Ubuntu 20.04 inside WSL and it’ll run it as the
rootuser - Use
passwd USERNAMEto change the forgotten password while running Ubuntu as root