"Non-root can't bind to ports <1024"? Not since Linux 4.11 in May 2017: $ nc -nvlp 1 nc: Permission denied $ echo 0 | sudo tee /proc/sys/net/ipv4/ip_unprivileged_port_start 0 $ nc -nvlp 1 Listening on [0.0.0.0] (family 0, port 1) (Ctrl-F "port_start" in https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt …)
Right, but changing it is conceptually a "chmod 666" operation rather than a "chown" operation. That's what's awful.
-
-
Rather the bind syscall should internally (in kernelspace) open a /dev/tcp/$addr/$port node, using user process permissions, and you should be able to chown each port as desired.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.