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

           Summary: rsync can't handle populate dirs without u+rx
                    permissions
           Product: rsync
           Version: 3.0.9
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


When running rsync with root at the source, it is quite possible to end up
wanting to transfer directories with 'strange' permissions.  At present, it the
destination doesn't have root access too, these directories cannot be
populated.

For example:

# mkdir source
# mkdir source/dir
# touch source/dir/file
# chmod 400 source/dir
# sudo rsync -rltp source user@host:destination
rsync: recv_generator: failed to stat ".../destination/source/dir/file":
Permission denied (13)

In order to create files in a directory without root, it needs to have u=rwx
permissions.  There is currently a workaround to temporarily add u+w write
permissions to a directory whilst creating files and to correct the permissions
afterwards, specifically to deal with read-only directories (u=rx).  The
attached patch extends this to temporarily add u+rwx permissions instead,
allowing all directories to be transferred.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to