3

Since libuv does not support child_process.spawn's uid option on Windows, how can you spawn a child process that runs as a different user?

2 Answers 2

1

Your best shot is to use "runas" command line tool for Windows. "runas /?" for details.

Sign up to request clarification or add additional context in comments.

Comments

0

You can not. It specifically says in the documentation that there is no option available for that on windows. http://nodejs.org/api/process.html#process_process_setuid_id

But if all you want to do is start as admin, because you need to bind to a privileged port, then there are other smarter ways of doing that, which will let you use a privileged port with a normal user.

1 Comment

So, what are these smarted ways to run as Admin?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.