Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
faq:nix [2018/02/13 12:37] – Added some information on binding to ports below 1024 as non-root on Linux, since that question seems to come up from time to time nightfox | faq:nix [2018/02/13 12:39] – Updated the section about ports <1024 on Linux with the question/answer format as in other sections nightfox | ||
---|---|---|---|
Line 194: | Line 194: | ||
===== Ports Below 1024 Without Root On Linux ===== | ===== Ports Below 1024 Without Root On Linux ===== | ||
+ | **Question: | ||
+ | How can I bind to network ports below 1024 as a non-root user on Linux? | ||
+ | |||
+ | **Answer: | ||
By default, Linux does not allow non-root processes to bind to ports below 1024. This was done as a security measure, although some argue that the reasons for this are obsolete. | By default, Linux does not allow non-root processes to bind to ports below 1024. This was done as a security measure, although some argue that the reasons for this are obsolete. | ||
setcap cap_net_bind_service=+ep / | setcap cap_net_bind_service=+ep / |