i want to run the Modbus Flex Server from the module node-red-contrib-modbus on an Raspberry Pi with Raspbian. But whenever i use the default port 502, Node-Red crashes. I found out that, ports below 1024 can not used without root. Then i found the command
setcap 'cap_net_bind_service=+ep' [path to node] to have access without running as root.
But now i tried it but it won't work either. I'm not sure i'm using the correct path.
setcap 'cap_net_bind_service=+ep' /home/pi/.node-red/node_modules/node-red-contrib-modbus/modbus/modbus-flex-server.js
Maybe someone can tell me what i'm doing wrong or give me a solution.
I searched for a while and can't another way to solve it.