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: