Problems of preserving file owership and uid&gid options in rsyncd.conf

Tim Conway conway at
Wed Sep 1 18:29:30 GMT 2004

move your uid and gid into the module.  They are not valid as global 
options.I hope there's something about auth users and a secrets file 
somewhere in there as well, as wide-open root to your /var is ill-advised.


Tim Conway
Unix System Administration
Contractor - IBM Global Services
conway at

I am trying to transfer some files to a remote rsync server. I have to 
preserve the ownership of these files in the remote server for future 
possibility of copying them back.
The command I am using is:
rsync -Cav /var/log/mp3log server2::var/log/mp3log
I have tried to add -o and -g options but still can't reach my purpose. I 
also remember to add a same user name to the remote rsync server. So 
what's the problem of my command? 
Another question is: if I don't specify the root uid and gid in 
rsync.conf, it seems the rsync on the remote server doesn't has enough 
privilege to create folds, because it is using the uid 99 which is nobody. 
However, I can't find these same options as mine in the example script 
files. So what is the proper way to set the uid and gid options?. 
Any suggestion is appreciated. Thanks!
my rsyncd.conf:
uid = root
gid = root
  path = /var
  comment = /var
  read only = no
  list = yes
To unsubscribe or change options:
Before posting, read:

More information about the rsync mailing list