Skip to content

Conversation

vincentDcmps
Copy link

hello,

I propose this pull request to implement rsync execution with different UID/GID than root
for this I have add su-exec instalaltion in docker file

Use case: NFS share with specific user right

@maxileith
Copy link

@valentinab25 Have you considered that change? The change would help me as well.

Co-authored-by: Maximilian Leith <[email protected]>
@merwok
Copy link

merwok commented Nov 11, 2024

I think the program should have default non-root uid/gid to run normally.

But to change that uid/gid, why add su-exec and custom envvars instead of using normal docker run --user option?

@timj
Copy link

timj commented Sep 4, 2025

I just ran into this issue. I tried setting --user but then the container won't start because it can't find the ssh keys (I have mounted them separately). Rsync as root and then relying on the client to use --chown seems bad to me and I would feel a lot better if I knew that the file system I was writing to on the server had restricted user permissions.

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

Successfully merging this pull request may close these issues.

4 participants