Wsl: Unterschied zwischen den Versionen

Aus Thoms Wiki
Zur Navigation springenZur Suche springen
Seite erstellt
 
Keine Bearbeitungszusammenfassung
Zeile 7: Zeile 7:
# Type <code>wsl</code> (optional <code>-d <distro-name></code>)
# Type <code>wsl</code> (optional <code>-d <distro-name></code>)
# Type <code>sudo echo hi</code> to confirm the new root password works.
# Type <code>sudo echo hi</code> to confirm the new root password works.
[[Kategorie:Linux]]

Version vom 13. Februar 2025, 15:56 Uhr

Du kennst Dein Passwort für Deinen WSL-Benutzer nicht (mehr) und brauchst es für sudo?

  1. Open Windows terminal cmd.exe
  2. Type wsl -u root (optional -d <distro-name>)
  3. Type passwd username and change the password
  4. Type exit
  5. Type wsl (optional -d <distro-name>)
  6. Type sudo echo hi to confirm the new root password works.