Is it possible that the Node.JS program runs as root to lower its privileges while it is running? This would be one of the first things he does, and the goal, of course, is to limit the possible damage that he can cause, in the unlikely event that there is a vulnerability or incorrectly trusted code in this process.
Alternatively, is there a way for a Node.JS process that runs as root to start a separate process that is not root? (preferably without adding a layer between them, e.g. sudo)
source share