Cannot preserve uids and gids with AIX 5.3 w/rsync 2.6.2

Jeff Mundine jeffm at brit.com
Mon Jan 29 23:49:23 GMT 2007


First, yes, I have read the piece on chroot....

Trying to get an AIX (5.3) to run rsync 2.6.2 as a daemon

I have tried every possibly usage to stop chroot, used no and false, as
on the web it has showed up as either. 
Also dropped flag --numeric-ids when running....

Here is my test config---

# Simple test config file

log file = /tmp/rsync.log

[test]

use chroot = no
path = /tmp/rsync_test/
read only = false
hosts allow = test_box*

Remember, have use chroot set to no and false

If I just use a simple rsync test_file test_box::test_module
no problems. Of course owner is nobody:nobody

(Changing UID and GID param in rsyncd.conf does work)

However, if I ever attempt to add a flag to preserve permissions, like:
rsync -a test_file test_box::test_module

these are the errors:

CLIENT
rsync: writefd_unbuffered failed to write 32768 bytes: phase
"unknown" [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (24 bytes received so far)
[sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)

SERVER
2007/01/29 17:32:09 [1699876] rsync to test_module from test_box
(10.255.2.178)
2007/01/29 17:32:09 [1699876] Invalid file index 1970104840 in
recv_files (count=1)
2007/01/29 17:32:09 [1699876] rsync error: protocol incompatibility
(code 2) at receiver.c(332)
2007/01/29 17:32:09 [1699876] rsync: connection unexpectedly closed (89
bytes read so far)
2007/01/29 17:32:09 [1699876] rsync error: error in rsync protocol data
stream (code 12) at io.c(342)


The client is a linux machine, although when in production it will be a
mix of linux and AIX.



More information about the rsync mailing list