The following error occurred while using the Rsync/cwrsync tool for file synchronization:
C:Program Filescwrsyncbin>rsync.exe-av Rsync://192.168.0.211:52326/test/cygdrive/e/www.01314.cn/rsync @ Error:invalid UID Nobody
Workaround: Add the following two lines to the rsyncd.conf file to resolve the problem
UID = 0
GID = 0
Full rsyncd.conf file
UID = 0 gid = 0 Use chroot = False Strict modes = False hosts allow = * log file = Rsyncd.log pid FILE = rsyncd.pid port = 52326 Max connections = 4 # Module Definitions # Remember Cygwin naming Conve Ntions:c:work becomes/cygwin/c/work # [Test] path =/cygdrive/e/rsync/res Read Only = yes Transfer logging = yes lock file = Rsyncd.lock
Cwrsync the permissions configuration and invalid UID Nobody of client password files
Cwrsync the client password file's permissions configuration disposition method.
Windows uses chmod under Cygwin
After creating the document, change the authority to 600.
chmod 600/rsyncd.passwd
Invalid UID Nobody disposal method.
Fix config file: rsyncd.conf
Add at the beginning of the file
UID = 0
GID = 0
Không có nhận xét nào:
Đăng nhận xét