DO NOT REPLY [Bug 7070] Permission denied message with --fake-super and permissionless directory

samba-bugs at samba.org samba-bugs at samba.org
Wed Aug 11 23:29:19 MDT 2010


https://bugzilla.samba.org/show_bug.cgi?id=7070





------- Comment #3 from chris at onthe.net.au  2010-08-12 00:29 CST -------
Created an attachment (id=5897)
 --> (https://bugzilla.samba.org/attachment.cgi?id=5897&action=view)
Fix-temp-file-perms-to-allow-reading-xattrs

(In reply to comment #2)
> Right.  The same problem occurs with a single regular file.

The regular file version of the problem can be fixed with the attached
'Fix-temp-file-perms-to-allow-reading-xattrs' patch.  I'm not confident enough
of how/when the directory permissions are updated to make a similar change to
fix that side of things.

For the record, the regular file version of the problem can be duplicated like
so:

rsyncd.conf:

[test]
  path = /tmp
  fake super = yes
  use chroot = no
  read only = no

$ touch /tmp/a
$ chmod 0 /tmp/a
$ sudo rsync -lt -av -e 'ssh' /tmp/a "localhost::test/b"
sending incremental file list
a
rsync: failed to read xattr user.rsync.%stat for ".b.xhD81x" (in test):
Permission denied (13)
rsync: failed to read xattr user.rsync.%stat for ".b.xhD81x" (in test):
Permission denied (13)

sent 76 bytes  received 27 bytes  13.73 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1057) [sender=3.0.6]
$ ls -l /tmp/a /tmp/b
---------- 1 chris  chris   0 2010-08-12 14:47 /tmp/a
-rw------- 1 nobody nogroup 0 2010-08-12 14:47 /tmp/b


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list