sudo icon indicating copy to clipboard operation
sudo copied to clipboard

Feature request: Support for logging in as a specific user (not just as "admin")

Open zadjii-msft opened this issue 1 year ago • 2 comments

Yep, pretty much what it says on the tin. Currently, sudo just runs the target app as the admin half of the admin user's split token (which may or may not be the current user). We should support a -u flag to allow the user to specify a different user to run as.

### Tasks
- [ ] #19
- [ ] Support running as System
- [ ] Support running as TrustedInstaller

zadjii-msft avatar Feb 06 '24 21:02 zadjii-msft

Would this possibly help starting WSL via SSH, i.e. https://github.com/microsoft/WSL/issues/7900? Running wsl.exe reports "The file cannot be accessed by the system.", and trying to execute the full path at C:\Users\username\AppData\Local\Microsoft\WindowsApps\wsl.exe reports "The system cannot execute the specified program.". Not sure what exactly that means but if it's any sort of user/permission issue, maybe sudo can help :)

tgross35 avatar Feb 29 '24 07:02 tgross35

🤦‍♂️ ignore me, that has been fixed

tgross35 avatar Feb 29 '24 07:02 tgross35