Score:0

command to add the port 80 to the sftpgo service

kz flag

While doing sftpgo setup on linux, getting below error, what I believe is we might need to add the 80 port to sftpgo service. But not getting command that we can use to add the port to the service, configurations looks good and have compared them with one existing setup and don't see any discrepancy. Would appreciate if someone can suggest the command to add the port 80 to the sftpgo service

Error: {"level":"error","time":"2021-12-08T07:50:14.011","sender":"service","message":"could not start HTTP server: listen tcp :80: bind: permission denied"}

in flag
To be able to bind to ports below 1000 you need to start the process as root.
Devops-Learner avatar
kz flag
the process is started as root, i have cross checked that
in flag
What distribution are you using? Selinux could also need the cause for such an error.
Devops-Learner avatar
kz flag
We are running this on amazon linux and have sftpgo running on same type of server and without any changes, compared both the configurations as well, but still getting this error
Score:0
cn flag

SFTPGo author here,

please add the cap_net_bind_service capability on the sftpgo binary using this command:

$ sudo setcap cap_net_bind_service=+ep /usr/bin/sftpgo

please take a look at the doc here for more details.

You can open a GitHub issue/discussion and provide more details if this does not fix the problem

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.