Running server on port 80/443 as other user

(Johan Dahl) #1


What is a good way of running a server written in go on port 80/443 as another user than root? I could put it behind nginx and use port forwarding but I rather not if it is possible. I want to do this on Linux.

(George Calianu) #2

A good explanation is here.

(Johan Dahl) #3

Thanks. setcap seems like a good workaround. I have never heard about it before but it was installed on my centos machine :slight_smile: