Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

User does not exist when resetting WSL password

$
0
0

I haven't used sudo on a command in a while, and recently when I tried to do this the password was wrong. This is read off of a post it note on my desk and has always worked for me before. I followed instructions online to reset the password. From the command prompt:

>wsl -u root>passwd <username>passwd: user 'username' does not exist

If I try getent passwd in the command prompt I don't see the username listed. However if I try getent passwd in the WSL ubuntu window the user is the last one listed. Obviously I can't use passwd in the WSL window because then it asks for the previous password. I have seen people need to reset their password OR not have a user exist, but I haven't seen someone deal with both yet. Any suggestions? Any reason why a password would stop working?


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>