Wednesday, May 15, 2024
 Popular · Latest · Hot · Upcoming
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 9294  / 2 Years ago, wed, april 27, 2022, 8:43:38

When I look into what my admin password is on Windows 10, everything seems to point to it being linked to the Microsoft account I have connected.


I validated this, it seems to be the case that I am not currently using a local account:


enter image description here


But the same password I'm able to use to log into this Microsoft account with does not work when I attempt to run sudo in WSL. There is only one account on my PC.


What detail have I missed or how can I troubleshoot?


More From » password

 Answers
7

Your Windows Subsystem for Linux (WSL) password is not your Windows password. To change your WSL password, try the following steps.


On a Windows prompt, enter the command:


wsl --user root

You should be logged in as root into your WSL. Now, use the passwd command to change the password for your user:


passwd username

Replace username with your actual Linux username.


You will be asked to type a new password without being asked for the current one. Once you're done, just leave the session with exit. Your user's password should have been changed.


Source: How To Reset Your Forgotten Linux Password in WSL (CloudSavvyIT)


[#1166] Wednesday, April 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
impisaso

Total Points: 423
Total Questions: 106
Total Answers: 104

Location: Virgin Islands (U.S.)
Member since Tue, Feb 2, 2021
3 Years ago
impisaso questions
Sat, Nov 27, 21, 13:42, 3 Years ago
Sun, Oct 3, 21, 14:50, 3 Years ago
Fri, Jun 17, 22, 14:35, 2 Years ago
Sat, Jun 25, 22, 01:42, 2 Years ago
;