Skip to content

Instantly share code, notes, and snippets.

@mattes
Created February 10, 2021 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattes/d0cbf454ae6f1c15ac6b0a68ce97ca2b to your computer and use it in GitHub Desktop.
Save mattes/d0cbf454ae6f1c15ac6b0a68ce97ca2b to your computer and use it in GitHub Desktop.
Allow non-root binary to bind port 80 and 443
sudo setcap CAP_NET_BIND_SERVICE=+eip /path/to/binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment