How to set new password in WSL

 Hi, In this post, we will see how to set new password for wsl.

Sometime, we may forgot our WSL password, in this post we will see how to set new password.


Open your local machine terminal and run command "wsl -u root" to login as root



After that, run command "passwd username"




It will ask to enter new password and retype password. 


Your password will be successfully updated. Hope it helps. Thank you.





Comments

Popular posts from this blog

How to build MCP Server and use MCP Inspector in Node

How to install ngrok in wsl for activepieces