![]() When you type here, nothing will be displayed on the screen. When you have the username, use this command: passwd username You can reset the password for the normal user account.ĭo you remember the username in WSL? If not, you can always check the contents of the /home directory. Now, if you start the Linux distribution app, you should be logged in as root. Step 2: Reset the password for the account To save you the trouble, I am listing some distributions and their respective commands in this table: Distribution App Set root as default user in Linux app’s configuration In the screenshot, I am using Ubuntu 20.04 app from the Windows store. If you were using the Ubuntu app from Windows store, the command would be: ubuntu config -default-user root In here, use your distribution’s command in this fashion. Know the command to run for your distribution appįrom the Windows menu, start the command prompt: Start Command Prompt This is from where you had downloaded your distribution in the first place. This information is usually provided in the description of the distribution app in the Windows Store. This is done through Windows Command Prompt and you’ll need to know which command you need to run for your Linux distribution. Since you don’t remember the account password, switching to the root user is done by changing the configuration of your Linux WSL application and make it use root user by default. This means that you can switch to the root user and then use the power of root to reset the password. ![]() The root user in WSL is unlocked and doesn’t have a password set. As you can see, my regular account’s username is abhishek. It will be wise to note down your account’s normal/regular username. Subscribe to our YouTube channel for more Linux videos Step 1: Switch to root as default user ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |