Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Binding to low ports under linux 2.6.24+ using setcap #37
The website lists a few ways under BSD/Solaris to bind to priv ports as a normal user.
There is a similar solution under linux that doesn't require something like authbind. If you are running 2.6.24 or later (or a vendor kernel with capabilities).
setcap 'cap_net_bind_service=+ep' /usr/bin/erl
[Note: that is probably a symlink, you need to run setcap on the dest.]
After this erl will be allowed to bind to low ports.
Or something like:
setcap 'cap_net_bind_service=+ep' /usr/lib/erlang/erts-5.7.4/bin/beam for running apps.
Note also that capabilities will be cleared when you install a new version of erlang.