-
Notifications
You must be signed in to change notification settings - Fork 861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$WSL_DISTRO_NAME does not exists after sudo -i #5914
Comments
This is the correct behavior of sudo. |
sudo -i is supose to work as a new login, imho that means the result should be the same as directly login as root with 'wsl -d distro -u root'
|
How You probably want |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Description
When I enter the distro with user root the environment variabele $WSL_DISTRO_NAME does exists
When I enter the distro with the default user and then go to the root user with
sudo -i
orsudo su - root
the environment variabele $WSL_DISTRO_NAME does not existsSteps to reproduce
The text was updated successfully, but these errors were encountered: