Skip to content

Cannot run as standalone binary even after "setcap CAP_NET_BIND_SERVICE" #368

Answered by kwitsch
SLCCL asked this question in Q&A
Discussion options

You must be logged in to vote

It seems like you set the bind permission to the go file instead of the executable.
If you directly execute the go project changing the port to some unprivileged one would be best practice.
Other solutions would be to give go itself the permission or execute it as root user(I strongly discourage this options).

If you aren't interested in the sources, you should download a precompiled executable(or compile it yourself) and set the permission to it.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by 0xERR0R
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
❔ question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #366 on December 13, 2021 06:32.