sftpgo icon indicating copy to clipboard operation
sftpgo copied to clipboard

Docker - modifiable UID

Open stefanogalantucci opened this issue 7 months ago • 3 comments

Is your feature request related to a problem? Please describe.

The Docker container currently works only on user 1000. This leads to problems if the container is to be used in synergy with other services (e.g., Apache).

Describe the solution you'd like

Adapt the container so that the UID on which SFTPgo will work can be set (e.g., via environment variable).

Describe alternatives you've considered

No response

What are you using SFTPGo for?

Private user, home usecase (home backup/VPS)

Additional context

No response

stefanogalantucci avatar Jul 13 '25 13:07 stefanogalantucci

I have same issue. With ProFTPd you could set the UID en GID for uploads. Would like to have the same function per user.

Power2All avatar Jul 31 '25 15:07 Power2All

Just use Docker feature for this. Example for Apache on Alpine Linux:

services:
  sftpgo:
    container_name: sftpgo
    image: drakkan/sftpgo:v2-alpine-slim
    user: 101:100
    (...)

Your used volumes need chown -R 101:100 /sftpgo/folder of course...

helmut72 avatar Aug 20 '25 05:08 helmut72

Already indeed solved it. The user key fixed it indeed, as I use 33:33 for the websites. All fine now, but would have been better if you could set a UID and GID per account though.

Power2All avatar Aug 20 '25 06:08 Power2All