If you are using the WSL feature in Windows 10 (formerly known as Bash On Ubuntu), you definitely know that you can install and run multiple Linux distros from Microsoft Store. Arch Linux is yet another distro you can install starting today.
Starting with Windows 10 build 18342 (19H1) and Windows 10 build 18836 (20H1), Microsoft added some new commands to the built-in wsl.exe tool. By using the new arguments, you can quickly list available distros in WSL Linux.
In this article, we will see how to remove a user account from a WSL Linux distro. You can remove any user account you created in a distro, including your default user account, leaving root as the only user you have.
Continuing with my WSL coverage, I would like to share how to add or remove a user to the sudo group in a WSL Linux distro in order to allow or deny it from running commands and apps as root. This is applicable to newly added user accounts, as they have no sudo privileges out of the box. Also, we will see how to find which user accounts are already members of the sudo group.
You may have multiple user accounts in a WSL Linux distro. This post explains how to quickly find available user accounts in a WSL console. The method described in the article is suitable for any WSL distro.
Each WSL Linux distro you have installed in Windows 10 contains its own set of user accounts. A WSL distro starts with its default user account that will be signed in automatically. It is possible to override the default user account and start a distro with a specific user account signed in by default. Also, you can switch between Linux user accounts without leaving your WSL session.
In a previous article, we saw how to run a WSL distro as a specific user without setting that account as your default WSL user. In this post, we will learn how to add a new user account to an installed WSL Linux distro in Windows 10.
The ability to run Linux natively in Windows 10 is provided by the WSL feature. Windows 10 does not automatically update or upgrade the packages in a distro installed in WSL. This is a task that a WSL Linux user need to perform himself.