Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to set the sftp-user-inventory GID #154

Open
emericv opened this issue Oct 2, 2024 · 0 comments
Open

Add option to set the sftp-user-inventory GID #154

emericv opened this issue Oct 2, 2024 · 0 comments

Comments

@emericv
Copy link

emericv commented Oct 2, 2024

I need that all directories must be created with a specific GID.

Actually, the sftp-user-inventory group is created with a default “user” GID :
https://github.com/emberstack/docker-sftp/blob/main/src/ES.SFTP/Security/UserManagementService.cs#L38

For the moment, I have overridden the compose entrypoint like this:

    entrypoint: |
      /bin/bash -c "
        grep -q '^sftp-user-inventory:' /etc/group \\
          || echo 'sftp-user-inventory:x:100:' >> /etc/group
        exec tini -- dotnet ES.SFTP.dll
      "

Nice to have: an option to set a specific GID for this group.

Otherwise: the directories must be created with the GID of the user specified in the configuration instead of the sftp-user-inventory GID...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant