I just rsync'd a bunch of files, from a Windows box running cygwin sshd, to a CentOS 6.4 box. I ran rsync -e sshd...
on CentOS to do this.
Then I plugged in a USB drive on the CentOS box, formatted as ext4 using mkfs.ext4
, and mounted it at /mnt/backup (with no extra options). Then I did chown
on /mnt/backup, and ran rsync -vrlptg
to copy the files from the CentOS box to /mnt/backup. A handful of random files (a few dozen of a few hundred thousand, mainly from 4 different directories, but not all of the files in those directories) failed with permissions errors. But when I ls -l
on the CentOS box, it shows that I own all of them.
If I sudo rsync
instead, it copies everything without complaining.
Why does it seem that rsync thinks I don't have permission to copy my own files to my own drive?
Update: although earlier it said myuser
owned them, I've since run a sudo rsync -e sshd
and now most (but not all) files, despite being in a folder in my home drive on the CentOS box (/home/myuser) are now no longer owned by myuser myuser
but instead are owned by 513
or dialout
, which I never set up as users.
ls -l
I was looking at might have. For the Windows->CentOS transfer I thought rsync wasn't able to transfer permissions info (coming from NTFS). Then from CentOS to the backup I don't understand why it would be trying that nor who these two other users are.