Skip to content
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

Request: add option to run a single session as selected user #139

Open
tranzystorekk opened this issue May 3, 2023 · 1 comment
Open
Assignees

Comments

@tranzystorekk
Copy link

Use case: sporadically, when something breaks in my WSL, I need to do a one-time as-root run to do some fixes etc. This currently requires running wsldl config --default-user root, doing the fix and then switching back to my regular user.

It would be convenient if wsldl run had a --user flag to temporarily select a different user for a single session.

@tranzystorekk
Copy link
Author

I wanted to take a stab at making a PR, but I can't find any way to select user id/name per run in the windows API. There must be some way though, since you can run wsl -u <name> 🤔

@yuk7 yuk7 self-assigned this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants