Saturday, March 28, 2020

Reset WSL password





C:\Users\alex>ubuntu config --default-user root

C:\Users\alex>ubuntu.exe
root@DESKTOP-GN4RPTT:~# whoami
root


root@DESKTOP-GN4RPTT:~# tail -3 /etc/passwd
sshd:x:109:65534::/run/sshd:/usr/sbin/nologin
pollinate:x:110:1::/var/cache/pollinate:/bin/false
alex:x:1000:1000:,,,:/home/alex:/bin/bash
root@DESKTOP-GN4RPTT:~# passwd alex
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@DESKTOP-GN4RPTT:~# exit
logout

C:\Users\alex>ubuntu config --default-user alex



No comments: