My goal is to manage the startup of a number of applications with an application executed by a user with elevated permissions.
The plan is to have the startup manager (a node.js script using require('child_process').exec
) cd
to the home dir of the app user & su <app user>
and then execute the startup as <app user>
.
My foremost concern is security. For instance, could the <app user>
exit
back to startup manager user?
Are there any other concerns worth considering or caution to take with this approach?