01.12.2019 – Linux/Let_unprivileged_binary_open_ports_below_1024.md

Let unprivileged binary open ports < 1024

Linux usually only permits binaries running as root to listen on ports below 1024. To change this for a certain binary, e.g. node

1
$ sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/node