Jeff Mundine
2007-Jan-30 00:17 UTC
Cannot preserve uids and gids with AIX 5.3 w/rsync 2.6.2
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.
Wayne Davison
2007-Jan-30 01:14 UTC
Cannot preserve uids and gids with AIX 5.3 w/rsync 2.6.2
On Mon, Jan 29, 2007 at 05:49:23PM -0600, Jeff Mundine wrote:> Trying to get an AIX (5.3) to run rsync 2.6.2 as a daemonFor any process to be able to affect a file's ownership, it must be running as root. The default daemon config runs each transfer process as user nobody. To change this, specify uid/gid in your rsyncd.conf: uid = 0 gid = 0> 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:That's very strange (and, as an aside, the "test_module" doesn't match your cited config file, which had a single "test" module). You can at least rule out that this was already fixed by trying 2.6.9 and seeing if the errors persist. ..wayne..