The question is related to Running command from Node.js with sudo (No working answer have been ever given).
A program is currently executed that way: sudo node xx.js This can't be changed, need the 80 port.
Now, I'm trying to use spawn and execute something without sudo, I've attempted to use uid: and guid:, however it doesn't actually work, it's still using sudo permissions.
How can I use spawn (or exec) - or even a Worker without sudo?
spawn(path,[], { uid: 1000, gid: 1000});
=> This does not work (it should do a spawn with the right uid, but it doesnt), 1000 is the right one, checked by using id in terminal (root is 0, my user is 1000)
Thank you