From Fedora Project Wiki

Revision as of 00:34, 3 February 2025 by Patricklang (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case ensures that the default user has been created, and that it has been configured for sudo |setup= |actions= # 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+), or `wsl.exe -d Fedora -u <username` (for WSL < 2.4.4) # Verify your username is what you configured with `id -u` # Run `sudo su`, then `id -u` again to confirm you can assume root |results= # Step 3...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case ensures that the default user has been created, and that it has been configured for sudo


How to test

  1. If you already have WSL running in Fedora, exit
  2. Run a new Fedora shell by running wsl.exe -d Fedora (for WSL 2.4.4+), or wsl.exe -d Fedora -u <username (for WSL < 2.4.4)
  3. Verify your username is what you configured with id -u
  4. Run sudo su, then id -u again to confirm you can assume root

Expected Results

  1. Step 3 should return your default username
  2. Step 4 should return root