[Bug 14683] failed to set permissions on symlinks; need `--omit-link-permissions` option

samba-bugs at samba.org samba-bugs at samba.org
Wed Apr 7 15:17:23 UTC 2021


--- Comment #1 from Ciprian Dorin Craciun <ciprian.craciun at gmail.com> ---
I've encountered a similar situation, but with OpenAFS, which for some reason
reports the protection for symlinks as `rwxr-xr-x`.

Thus using `rsync` with `--perms` and targeting an OpenAFS folder fails with a
similar error stating that it can't `chmod` the permissions for that symlink.

I am similarly using 3.2.3 on OpenSUSE Tumbleweed (the client) and the same
version on OpenSUSE Leap 15.2 (the server).  A few monts ago (say January) I've
not encountered this error  (I'm using the same scripts as before).

In essence to reproduce this issue one just has to:

mkdir /tmp/source
ln -s /dev/null /tmp/source/some-symlink
stat /tmp/source/some-symlink
# Access: (0777/lrwxrwxrwx)  Uid: (1000/ ciprian)   Gid: (1000/ ciprian)

mkdir /afs/.../target
ln -s /dev/null /afs/.../target/some-other-symlink
stat /afs/.../target/some-other-symlink
# Access: (0755/lrwxr-xr-x)  Uid: (33025/ UNKNOWN)   Gid: (1000/ ciprian)

# up to here we've checked that the source file-system behaves normaly while
OpenAFS forces the protection I've stated.

rsync -r -p -i --links /tmp/source/some-symlink /afs/.../target/
rsync: [generator] failed to set permissions on "/afs/.../target/some-symlink":
Operation not supported (95)
cL+++++++++ some-symlink -> /dev/null
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1330) [sender=3.2.3]

(The same happens when the target is via SSH.)

You are receiving this mail because:
You are the QA Contact for the bug.

More information about the rsync mailing list