mike
2008-Jul-06 18:27 UTC
Handful of files are giving me error 13, directory executable bit issue
I am getting a handful of these errors, and I am not sure why. The directories in question have rights like this: drw-r--r-- 2 osstbb osstbb 42 2008-05-02 00:04 12981826/ As root, why would it matter if it has executability? I can read it just fine on the server. Or is it an issue when it tries to create it on the -client- ? Is there a way to fix this? I can chmod 0755 the dirs on the server and it fixes it, but I don't want to have to learn (via STDERR) each failure when it occurs... I am not running it as root on the client; I have ran it with -a and thought maybe that was why. Currently my options are: -rlEtiOzP I don't need to keep the uid/gid permissions, but I do need to keep the executability. But it seems like it can't create a directory on the client when the executable flag is missing on the server or something? rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/bottom_center.jpg": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/bottom_center_left.jpg": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/bottom_left.jpg": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/bottom_right.jpg": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/spacer.gif": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/top_center.gif": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/top_center.jpg": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/top_center_clr.gif": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/top_left_corner.jpg": Permission denied (13) rsync: recv_generator: failed to stat "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/top_right_corner.jpg": Permission denied (13) rsync error: some files could not be transferred (code 23) at main.c(1506) [generator=3.0.3]
Matt McCutchen
2008-Jul-07 00:46 UTC
Handful of files are giving me error 13, directory executable bit issue
On Sun, 2008-07-06 at 11:27 -0700, mike wrote:> I am getting a handful of these errors, and I am not sure why. The > directories in question have rights like this: > > drw-r--r-- 2 osstbb osstbb 42 2008-05-02 00:04 12981826/> ?rsync: recv_generator: failed to stat > "/home/backups/linux01/home/clientdir/web/webapps/ROOT/videotemp/RollingDemo_media/images/bottom_center.jpg": > Permission denied (13)A directory's execute permission governs traversal of its entries, so a non-root user needs execute permission on a directory to access files inside. The error comes when the generator (one of the two rsync processes on the receiving side) fails to manipulate files inside the nonexecutable destination directories. It's almost always a mistake for a directory to grant a user class (owner, group, or world) read permission without the corresponding execute permission. I recommend that you chmod the nonexecutable source directories and fix whatever program created them. If you don't want to do that, you could pass --chmod=Dugo+X to have rsync create destination directories with all the execute permissions on, regardless of the source permissions. (You may have to fix existing destination directories by hand.) Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20080706/3caf7f5b/attachment.bin