cwrsync invalid uid nobody solution
- 2020-05-15 02:43:39
- OfStack
The following error occurred while synchronizing files using the rsync/cwrsync tool:
C:Program FilescwRsyncbin>rsync.exe -av rsync://192.168.0.211:52326/test /cygdrive/e/www.01314.cn/rsync
@ERROR: invalid uid nobody
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]
Solution: add the following two lines to the rsyncd.conf file to solve 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 conventions : c:work becomes /cygwin/c/work
#
[test]
path = /cygdrive/e/rsync/res
read only = yes
transfer logging = yes
lock file = rsyncd.lock
secrets file = /etc/rsyncd.pass
cwRsync client password file permissions configuration and invalid uid nobody difficult
cwRsync client password file permissions configuration disposal.
windows USES chmod under cygwin
After creating the file, change the permissions to 600
600 / chmod rsyncd passwd
invalid uid nobody resolution.
Fixed configuration file: rsyncd.conf
Add at the beginning of the file
uid = 0
gid = 0