simplexmq icon indicating copy to clipboard operation
simplexmq copied to clipboard

xftp-server latst version run with xftp PERMISSION DENIED ubuntu 20.04 what is wrong.

Open Jordibgzashtita opened this issue 1 year ago • 1 comments

su xftp -c "xftp-server start" SimpleX XFTP server v5.6.0.3 Fingerprint: KuPlZbdsf0-92130-rpoewkfdskf0-120-302193 Server address: xftp://[email protected]:446 Store log: /var/opt/simplex-xftp/file-server-store.log expiring files after 2 days not expiring inactive clients Uploading new files requires password. Listening on port 446... [INFO 2024-03-20 20:45:10 +0000 src/Simplex/FileTransfer/Server/Env.hs:102] Total / available storage: 21474836480 / 21474836480 [INFO 2024-03-20 20:45:10 +0000 src/Simplex/Messaging/Transport/Server.hs:149] binding to [::]:446 xftp-server: Network.Socket.bind: permission denied (Permission denied)

Jordibgzashtita avatar Mar 20 '24 20:03 Jordibgzashtita

Running services on ports below 1024 requires ~a blessing from ep~ granting a capability to the binary:

setcap 'cap_net_bind_service=+ep' /path/to/program

If this doesn't work you can search "can't bind https 443" or something like that and apply the solutions from there.

dpwiz avatar Mar 24 '24 07:03 dpwiz