Good afternoon, there was a need to manage iptables from the nodejs application, as I understood iptables can only be called using sudo,
put pm2
sudo npm i pm2 -g --unsafe-perm sudo pm2 command did not appear, just run
pm2 start app.js does not allow to execute sudo command from the application, tell me what else you need to do in order for the application to receive root rights