Digital Marketing

Reset User Password in Windows Subsystem for Linux (WSL) Ubuntu

Open a command prompt or PowerShell.

Then change the default user to root for the WSL Ubuntu

 ubuntu config --default-user root

Use the following command to change the former default user's password:
passwd <username>

Switch back your former user:

ubuntu config --default-user <username>


Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership