Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Last active December 27, 2019 19:04
Show Gist options
  • Save Beyarz/8225beb7f9cb9170dac3d9c7209db978 to your computer and use it in GitHub Desktop.
Save Beyarz/8225beb7f9cb9170dac3d9c7209db978 to your computer and use it in GitHub Desktop.
Windows subsystem lost password

cat /etc/passwd

open regedit and navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss

set the DefaultUid to 0

passwd USERNAME

You should now be able to set your new password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment