1

Does systemd allow for functionality like authbind? Where you can allow a non-root user to bind to a priv port?

I looked through the manpage and did quite a bit of googling, couldn't find an answer. Thank you!

1 Answers1

4

You could use systemd's socket activation functionality to achieve what you want (if the program you're running supports it). Systemd binds to the port as root then passes the socket to the unprivileged program (ex. Apache).

Also look into the AmbientCapabilities directive and CAP_NET_BIND_SERVICE.

Henrik Pingel
  • 8,676
  • 2
  • 24
  • 38
logix
  • 156
  • 1