Skip to content
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

Pm2 must be running as root? #660

Closed
felixsanz opened this issue Aug 27, 2014 · 2 comments
Closed

Pm2 must be running as root? #660

felixsanz opened this issue Aug 27, 2014 · 2 comments

Comments

@felixsanz
Copy link

The readme says:

$ pm2 --run-as-user foo start app.js # Start app.js as user foo instead of root (pm2 must be running as root)

Pm2 must be running as root? why? I mean im using a non-root user to start the process and it's working fine, why this statement?

@soyuka
Copy link
Collaborator

soyuka commented Aug 28, 2014

Comes from #329.

This is only to make a process run on a different user than the one you've started pm2 with. It's useless in most cases except a multi-user environment (#642). Indeed the (pm2 must be running as root) might not be necessary but I don't know if a standard user can run process.setgid().

Should I remove this sentence to avoid any confusion?

@Unitech
Copy link
Owner

Unitech commented Aug 28, 2014

Definitely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants