microsoft / sudo

It's sudo, for Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

zadjii-msft opened this issue · 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

  1. Issue-Task

Would this possibly help starting WSL via SSH, i.e. microsoft/WSL#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 :)

🤦‍♂️ ignore me, that has been fixed