In fact, running Node-RED as root is a bad idea in general. If you have a specific reason why you need to run it as root, try to figure out a workaround using the sudoers file or permissions elsewhere to get a lower user run it. But really, there are no valid reasons to run it as root. Especially not because with the exec node it runs all commands as root, and it comes with a web interface to edit those. There are a few topics on this already mentioning this...
afelix
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| [new user] Blank screen upon starting node-red | 16 | 1856 | 25 May 2022 | |
| Constant Node-RED must be restarted to enable upgraded modules | 7 | 1198 | 5 December 2020 | |
| Node-red stopped working? | 85 | 9704 | 5 June 2019 | |
| Node-RED doesn't start anymore | 3 | 4560 | 8 March 2019 | |
| Fresh install Raspberry Pi OS and node-RED, copied old .json files, no flows | 10 | 339 | 15 July 2023 |