Allow Non Root to Bind to Privileged Ports

Allow non-root processes to bind to ports with low port numbers

For historical reasons there is restrictions in most Linux distributions, even in most *nix operating systems, that requires a process to have root privileges to be able to open a listening port socket on ports lower than 1024.

There is a way to reconfigure this.

1
2
3
4
#save configuration permanently
echo 'net.ipv4.ip_unprivileged_port_start=0' > /etc/sysctl.d/50-unprivileged-ports.conf
#apply conf
sysctl --system

Links