[Bug 1226656] New: rsync --chown sets permissions to root:root after upgrade to Leap 15.6
https://bugzilla.suse.com/show_bug.cgi?id=1226656 Bug ID: 1226656 Summary: rsync --chown sets permissions to root:root after upgrade to Leap 15.6 Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.6 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network Assignee: screening-team-bugs@suse.de Reporter: georg.pfuetzenreuter@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Hi, On the client: ``` rsync -a --delete --super --owner --group --chown=477:479 --chmod='u=rwX,g=rX,o=' $PWD/ rsync://saltpush@witch1.infra.opensuse.org:873/salt-push/ ``` On the server, rsyncd.socket is listening with the following /etc/rsyncd.conf: ``` # Salt managed defaults address = :: gid = users log format = %h %o %f %l %b secrets file = /etc/rsyncd.secrets transfer logging = True use chroot = True # Salt managed modules [salt-push] path = /srv/salt-git/ comment = /srv/salt-git/ list = false uid = root gid = salt auth users = saltpush read only = False hosts allow = 2a07:de40:b27e:1203::126, 2a07:de40:b27e:1203::127 ``` With Leap 15.5, sync operations would keep the expected permissions and ownership on the directory /srv/salt-git and its contents. After the upgrade to Leap 15.6, which installed `rsync-3.2.7-150600.1.5.x86_64` on both the client and server side, the following happens: ``` root@witch1 ~# chown -R 477:479 /srv/salt-git root@witch1 ~# ls -dn /srv/salt-git drwxr-x--- 1 477 479 426 Jun 20 16:35 /srv/salt-git/ 8ec7287bf746:/srv/salt-git # rsync -a --delete --owner --group --chown=477:479 --chmod='u=rwX,g=rX,o=' $PWD/ rsync://saltpush@witch1.infra.opensuse.org:873/salt-push/ root@witch1 ~# ls -dn /srv/salt-git drwxr-x--- 1 0 0 426 Jun 20 16:35 /srv/salt-git/ ``` The directory gets recursively owned as root:root instead of keeping 477:479. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1226656 Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |david.anes@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1226656 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1226656 https://bugzilla.suse.com/show_bug.cgi?id=1226656#c2 --- Comment #2 from Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com> --- Hi David, thanks for getting back. I installed the you linked on both the client and server, but the behavior unfortunately is still the same. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1226656 https://bugzilla.suse.com/show_bug.cgi?id=1226656#c6 --- Comment #6 from Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com> --- Thanks for investigating. The result is the same with these command lines: ``` # rsync -a --delete --owner --group --chown=477:479 --chmod='u=rwX,g=rX,o=' $PWD/ rsync://saltpush@witch1.infra.opensuse.org:873/salt-push/ # rsync -a --delete -M--super --super --owner --group --chown=477:479 --chmod='u=rwX,g=rX,o=' $PWD/ rsync://saltpush@witch1.infra.opensuse.org:873/salt-push/ ``` Both with and without the target directory previously manually chown-d. I now found out that the behavior also exists when calling rsync on a 15.6 client towards a 15.5 server. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1226656 https://bugzilla.suse.com/show_bug.cgi?id=1226656#c7 --- Comment #7 from Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com> --- I now built ourselves a container with the 15.5 rsync client (version 3.2.3) to work around this problem: https://build.opensuse.org/package/show/openSUSE:infrastructure/container-he.... -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com