The nodejs, pm2, and nextjs processes create on the server with DebianOS files with the owner root, how to switch them to only www-data?
- oneso run them on behalf of the desired user. - aleksandr barakin pm
- ^ helped, created a user ogre they launched - Roman
- What to do with the answers to my question? - aleksandr barakin 2:38 pm
|
1 answer
For PM2 , the installation instructions indicate that you can specify the user from which the process will work
pm2 startup ... --user www-data ...
|