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.
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.
You may have multiple user accounts in a WSL Linux distro. This post shows how to remove a user account from WSL Linux in Windows 10.
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.
In a previous article, we reviewed the methods you can use to start a WSL Linux Distro in Windows 10, including the classic shortcuts in the Start menu, and ending the wsl.exe console tool. In this article, we will see how to run a distro as a specific user without setting that account as your default WSL user.
If you need to change your user account in a WSL Linux distro, it can be a bit tricky when you are not familiar with Linux console tools. We will see how to change the password without resetting the distro.