47431ab4478d652cdd48eff1a7ed7dc0e177a6e2
[webi-installers/.git] / setcap-netbind / README.md
1 ---
2 title: setcap-netbind
3 homepage: https://github.com/webinstall/webi-installers/setcap-netbind/README.md
4 tagline: |
5   setcap-netbind: Give a binary the ability to bind to privileged ports.
6 ---
7
8 setcap-netbind will grant the specified program the ability to listen on
9 privileged ports, such as 80 (http) and 443 (https) without root privileges or
10 sudo. It seeks out the specified binary in your path and reads down symlinks to
11 make usage as painless as possible.
12
13 ## Cheat Sheet
14
15 ```bash
16 sudo setcap-netbind node
17 ```
18
19 This is the same as running the full command:
20
21 ```bash
22 sudo setcap 'cap_net_bind_service=+ep' $(readlink -f $(which node))
23 ```