I want to run a one-time web server on port 80, which I will never run again.
Is there something like 'sudo' that gives only temporary CAP_NET_BIND_SERVICE
, not real root, to a process? So that we don't have to use chmod
or setcap
.
I want to run a one-time web server on port 80, which I will never run again.
Is there something like 'sudo' that gives only temporary CAP_NET_BIND_SERVICE
, not real root, to a process? So that we don't have to use chmod
or setcap
.
capsh
allows you to construct a specific set of capabilities before starting a program. – Stephen Kitt Oct 26 '19 at 11:01authbind
: transparently (LD_PRELOAD) loads an helper which replaces the bind() call by executing it through a forked suid root binary helper which will do the actual bind() on the shared (socket) file descriptor. – A.B May 21 '20 at 00:34