![]() ![]() Watch Full Video to Recover your password Windows Subsystem Linux If you are using Ubuntu 18.04 in WSL, the command has changed to ubuntu1804, so ubuntu1804 config -default-user your_username Use passwd command in Bash to change the user password (the user whose password you want to reset): passwd your_usernameĬhange the default user back to your normal user in Windows command prompt ubuntu config -default-user your_username Now Bash on Ubuntu on Windows logs you in as root without asking password. ![]() If you are using Ubuntu 18.04 in WSL, the command has changed to ubuntu1804, so ubuntu1804 config -default-user root In Windows admin command prompt ( Super+ X, A) change the default user to root: ubuntu config -default-user root Close Bash on Ubuntu if it is running (or the next command will fail).Run bash and make a note of your Linux username (this need not match your Windows username), see How can I find out my user name?. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |