Fixing a forgotten password or a broken file permission inside WSL usually needs root, and the default user is not root. You do not have to change the default user for that.
wsl --distribution <Distribution Name> --user <User Name>
For example, to open Debian as root:
wsl --distribution Debian --user root
The Microsoft documentation describes it as running a specific distribution with a specific user. If you have several distributions and are not sure about the exact name, wsl -l lists them.
To confirm who you are once inside, run whoami, which the documentation suggests for printing the current user name. A related option is wsl --user <Username> on its own, which runs WSL as that user in the default distribution.
The user has to exist inside the distribution. If it does not, you get an error. Note also that wsl --user works per call. For a permanent change of the default login user, the documentation points to <DistributionName> config --default-user, which does not work for imported distributions. For those you set the user in /etc/wsl.conf.
None of this was run on a live Windows machine here. It follows the Microsoft documentation.
Further reading: Basic commands for WSL