Replies: 1 comment 2 replies
-
|
rsync is an external command, and as such, its behavior is outside of our control. For this reason, we are likely to remove support for rsync in the next major release. In hindsight, adding support for it was a mistake. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm using SFTPGo for my homelab. I found that restricting subdirectories via ACLs do not work with
rsync, despite seemingly working withsftp. I'm not sure if this is intended or a potential bug, so I'm leaving it here if anyone could find out more.Minimal reproduction attempt
With an instance that enables
rsync:podman run --rm \ --name some-sftpgo \ -p 8080:8080 \ -p 2022:2022 \ -e SFTPGO_SFTPD__ENABLED_SSH_COMMANDS=rsync \ -d drakkan/sftpgo:alpineAnd a set of users with the following ACLs:
foo(outer dir user):list/example-dir/bar: list/example-dir: list, download, upload, overwrite, create_dirs, deletebar(inner dir user):list/example-dir: blank (no permission)/example-dir/bar: *(both users share the same root directory (
/tmp) on local disk)Manipulating the
/example-dir/bar/dir should only be possible with thebaruser:However, user
foocan still modify/example-dir/bar/and its contents if they specify the outer dir as the remote destination in rsync. The commands below work to undo the commands above:OR
OR BOTH
The same could not be said for SFTP/SCP commands that I found to be similar:
I've read the docs on system commands, but I couldn't still determine if this rsync supports falls into the intended behaviour or not. Do outer directories overrides the permissions set in subdirs? Or could this be some kind of permissions problem? As tested on a different setup, I believe this can be reproduced with groups ACLs instead of users', as well as with/without virtual folders being mounted as the
/example-dir.For now, I'll probably use separate directories for separate users for certainty. Thanks in advance for any help and clarification.
Beta Was this translation helpful? Give feedback.
All reactions