4 ms·
sudo apt-get install libcap2-bin # Debian/Ubuntu/etc sudo setcap 'cap_net_bind_service=+ep' /path/to/program will allow program to bind low numbered ports by n
by vhodges 7y ago
sudo apt-get install libcap2-bin # Debian/Ubuntu/etc
sudo setcap 'cap_net_bind_service=+ep' /path/to/program
will allow program to bind low numbered ports by non-root user.
Just learned this deploying a new rails app behind caddy2 (which is running as the deploy user I setup).