Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding to low ports under linux 2.6.24+ using setcap #37

Closed
lotaris-xx opened this issue Jun 15, 2010 · 1 comment
Closed

Binding to low ports under linux 2.6.24+ using setcap #37

lotaris-xx opened this issue Jun 15, 2010 · 1 comment

Comments

@lotaris-xx
Copy link

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.

@klacke
Copy link
Collaborator

klacke commented Jun 15, 2010

At last - this should have been done 10 years ago. I'll it to the docs - thanks

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants