-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forbid normal user access. #1060
Comments
Feature added in upcoming PM2. To try it: (Make sure pm2 is run as root to manipulate uid and gid) $ pm2 save
$ pm2 kill
$ npm install Unitech/pm2#development -g
$ sudo pm2 resurrect
$ sudo pm2 start app --uid <uid>
# Now pm2 ls display the user running the script
$ pm2 ls Feedback is welcome |
Thank you for implementing this. |
inerc
pushed a commit
to inerc/pm2
that referenced
this issue
Feb 11, 2020
…ech#2938 Unitech#971 Select application uid/gid via --uid --gid (CLI+JSON) + pm2 install --uid / --gid
This was referenced Jan 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What I want:
Run pm2 daemon as root and my web app as www-data.
Only users who have root privilege can control the web app.
But in current version of pm2:
Any user can stop or restart a web-app even it's controlled by root.
The text was updated successfully, but these errors were encountered: