Mono: Is it possible to start a service on port 80 without root?

Is there a way to make the application run on port 80 without having to run it as root?

I do not want to start the process as root, because it is unsafe, and I want to use port 80. I do not want to use a proxy in front of the application.

Apache, for example, starts as root and reduces privileges, is there a way to do this in Mono?

In context, I run ServiceStack, but I also ask.

+4
source share
2 answers

OK I finally accomplished this with authbind

. , , , --deep, mono . , .

, :

sudo -u myapp authbind --deep ./MyApp.exe

uid authbind, config:

/ .. /authbind/byuser/ 999:

0.0.0.0,80-89

, Mono - "Mono" "Java" Java/Tomcat Mono.

+7

, . 1024 , UID 0 .

, Mono, , Apache, - . .

+2

All Articles