You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
n/a
What operating system and processor architecture are you using (go env)?
n/a
What did you do?
Try to launch a process as a different user. Found syscall.Credential can be supplied as a SysProcAttr to exec.Cmd.
What did you expect to see?
Ability to launch process as different user, on all supported OSes.
What did you see instead?
syscall.Credential only supports UID/GID and only works on Unix-like systems. There's no option for Windows (based on either CreateProcessWithLogonW call, or LogonUser/CreateProcessAsUserW pair call).
The text was updated successfully, but these errors were encountered:
I believe this is a duplicate of #21105. I think the associated CL, golang.org/cl/75253 includes an example of this. I'll close this as a duplicate, but please let me know if I am mistaken.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
n/a
What operating system and processor architecture are you using (
go env
)?n/a
What did you do?
Try to launch a process as a different user. Found
syscall.Credential
can be supplied as aSysProcAttr
toexec.Cmd
.What did you expect to see?
Ability to launch process as different user, on all supported OSes.
What did you see instead?
syscall.Credential
only supports UID/GID and only works on Unix-like systems. There's no option for Windows (based on eitherCreateProcessWithLogonW
call, orLogonUser
/CreateProcessAsUserW
pair call).The text was updated successfully, but these errors were encountered: