From Fedora Project Wiki
Description
This test case ensures that the default user has been created, and that it has been configured for sudo
How to test
- If you already have WSL running in Fedora,
exit
- Run a new Fedora shell by running
wsl.exe -d Fedora
(for WSL 2.4.4+), orwsl.exe -d Fedora -u <username
(for WSL < 2.4.4) - Verify your username is what you configured with
id -u
- Run
sudo su
, thenid -u
again to confirm you can assume root
Expected Results
- Step 3 should return your default username
- Step 4 should return
root