This opens up the settings file. I wanted to give the new Windows Terminal a go and the first thing I noticed is that when I open WSL in windows terminal it defaults to my home folder on Windows /mnt/c/Users/wes. To make this the default in Windows Terminal, open the Windows Terminal Settings, find your WSL2 profile, and add âcommandlineâ: âbash.exe ~â From under a WSL2 distro, I run docker containers mounting directories into containers. Similar to running cd ~. It is tricky and easy to reset password on WSL2. To change into your Windows directory, you have to change many directories which is time consuming and nobody wants waste time like that. Now that Windows 10 Slow Ring builds have WSL2 Iâve been doing more dev work on my Windows computer (VS Code Remote WSL is really good yâall). Once you create a User Name and Password , the account will be your default user for the distribution and automatically sign-in on launch. [Click on image for larger view.] To edit this, go to the Terminal settings file. cd ubuntu config --default-user user01 # (to set the default user for the WSL terminal) The output from these commands is shown in Figure 2. Discussion (0) Subscribe. To do that, first of all, you need to set login as root by default: 1ubuntu config --default-user root Then change your password as root: 1passwd < cd /mnt/c/User/user_name To Make it Default WSL BASH Directory. This is done through a configuration file named .wslconfig that will need to be created in a user's %UserProfile% folder. I am working on wsl2 of win10: PS C:\Users\Gaowei> wsl -l -v NAME STATE VERSION * Ubuntu-20.04 Running 2 After entering wsl, I make a file of test.md: ~ ls -l test.md -rwxrwxrwx 1 gaowei gaowei 0 Aug 25 17:17 test.md then try to change its permissions: I want to change this to WSL2. If you have setup a non-root user (which you normally do during install) and already logged in as that user, or did not setup root password yet, you an do that now. Figure 3 shows that after resetting the password, I could use the new password to sudo to root without any issues. WSL Ubuntu password change. The default shell in the terminal is PowerShell. I'm using the Docker Desktop WSL2 engine. Figure 2. Give this a couple minutes to install, and then you can launch the terminal. When these containers create any files, they are created on the host file system by the root user which is different from my user that I log in automatically in WSL2. Run the following commands, type the following commands in your WSL terminal. First, login to Windows command prompt and set default WSL user. Copy the GUID from ⦠It is possible to set a global setting for WSL2 in file that should be exist in user folder ex: C: ... Change the default user at start with Powershell using this code config --default-user like kali-linux --default-user omar. Optional: Change root password. bash ~ launches the bash shell into the userâs home directory. To manually change the directory, you type the following commnad. If you are like me you want it to start in your linux home ⦠This User Name and Password is specific to each separate Linux distribution that you install and has no bearing on your Windows user name.