Verified Commit a05fc7ec authored by Aral Balkan's avatar Aral Balkan
Browse files

Update readme with latest privileged ports information

parent c50538bb
......@@ -38,7 +38,13 @@ npm i @small-tech/https
Linux has an outdated feature dating from the mainframe days that requires a process that wants to bind to ports < 1024 to have elevated privileges. While this was a security feature in the days of dumb terminals, today it is a security anti-feature. (macOS has dropped this requirement as of macOS Mojave.)
On Linux, ensure your Node process has the right to bind to so-called “privileged” ports by issuing the following command before use:
On modern Linux systems, you can disable privileged ports like this:
```sh
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=0
```
Or, if you want to cling to ancient historic relics like a conservative to a racist statue, ensure your Node process has the right to bind to so-called “privileged” ports by issuing the following command before use:
```sh
sudo setcap cap_net_bind_service=+ep $(which node)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment