close
Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

Allow non-root process to bind to port 80 and 443?

Is it possible to tune a kernel parameter to allow a userland program to bind to port 80 and 443?

The reason I ask is I think its foolish to allow a privileged process to open a socket and listen. Anything that opens a socket and listens is high risk, and high risk applications should not be running as root.

I'd much rather try to figure out what unprivileged process is listening on port 80 rather than trying to remove malware that burrowed in with root privileges.

Answer*

Cancel
3
  • 3
    Thanks for the compliment. This is a great collection of concrete advice. +1. Commented Apr 23, 2014 at 23:13
  • 2
    so much reading... I just want to serve static files Commented Sep 26, 2021 at 10:45
  • Maybe you could add the phrase socket activation? I think that is the common terminology for referring to this systemd feature. Commented Nov 21, 2023 at 13:58