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?

1 answer 1

For PM2 , the installation instructions indicate that you can specify the user from which the process will work

pm2 startup ... --user www-data ...