Sudo with Nodejs scripts?


    Sep 25 2018 | 5:39 pm
    Is it possible to run nodejs scripts in Max 8 with superuser privileges?

    • Sep 28 2018 | 11:15 pm
      From my rummaging through the Max Node.js source code, it seems there may be a way to spawn a Node.js process outside of the `node.script` Max object, when this is possible, it could be spawned with sudo privileges.
      I'm curious - what do you want to achieve with this?
    • Sep 29 2018 | 7:11 am
      The short answer is to get a node server I cobbled together a couple of years to run! For some reason it only works if I use sudo. It uses sockets.io which seems to be the offending section, not sure why. Port 3000.
      There are workarounds but I’m thinking I should probably rebuild it and try to actually understand it this time!
    • Sep 30 2018 | 5:52 pm
      Heya, it's not possible to run node script with sudo, from Max. Unless there's a _very_ compelling reason to change that, it's not likely to be something we add.
    • Oct 01 2018 | 8:03 am
      Well how else am I going to get your bank details every time you stream Ed Sheehan on Spotify?
    • Oct 01 2018 | 11:28 am
      Lol that's a good point, hadn't considered that!