simon / Misc

Last active 1 month ago

simon revised this gist 1 month ago · cd89de2

1 file changed, 9 insertions

misc.md (file created)
@@ -0,0 +1,9 @@
1 + # misc
2 +
3 + * Allow applications to bind to privileged ports:
4 +
5 + ```javascript
6 + sudo setcap 'cap_net_bind_service=+ep' `which tsh`
7 + sudo getcap `which tsh`
8 + sudo setcap 'cap_net_bind_service=-ep' `which tsh`
9 + ```