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.
OK I finally accomplished this with authbind
. , , , --deep, mono . , .
--deep
, :
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.
"Mono"
"Java"
, . 1024 , UID 0 .
, Mono, , Apache, - . .