We are running rsync (v3.0.7) as superuser (root), with following options ? /opt/rsync-v3.0.7/bin/rsync --checksum -e rsh --archive --rsync-path=/opt/rsync-v3.0.7/bin/rsync --hard-links --timeout=5184000 --exclude=.snapshot --exclude=../latest --exclude=../previous --delete --compress --stats distuser\@myserver:/source/dir/ /dest/dir Few files are owned by a user ?jim? with following permissions at source location -r-xr----- 1 jim users 353554 Sep 3 07:11 environment_user_guide_kit_internal.pdf -r-xr----- 1 jim users 1769414 Oct 11 22:14 GenerationLabManual.pdf -r-xr----- 1 jim users 4734 Jul 12 11:10 README.txt Surprisingly this rsync command works successfully on RHEL 3 & 4 system and copies these files with exact permissions at destination, but on RHEL 5.5 system we get error as permission denied for these files I wonder what could be the reason for the same? Why same command is failing to transfer data on RHEL5.5 System? Appreciate your comments and feedback on this. ??g????, Satish Shukla -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20101111/aea33ee8/attachment.html>
On Wed, Nov 10, 2010 at 11:14 PM, Satish Shukla <satish at cadence.com> wrote:> We are running rsync (v3.0.7) as superuser (root) >The login name you used for the source side is "distuser", so it is not running as root (only the receiving is running as root). Thus, all the source files must be readable by the "distuser" user in that command. Other alternatives include using a different login user, using password-less sudo to switch distuser to another user (e.g. --rsync-path='sudo rsync'), or setting up a read-only rsync daemon on the source host (which also has a variety of access options). ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20101111/f574e18f/attachment.html>