@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at

Posted TaKe___Easy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at相关的知识,希望对你有一定的参考价值。

报错

[root@client /]# rsync -avz qz@192.168.131.10::wwwroot /qz/
Password: 
@ERROR: auth failed on module wwwroot
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.9]

rsync配置

[root@rsync html]# vim /etc/rsyncd.conf 

uid = nobody
gid = nobody
use chroot = yes
address = 192.168.131.10
port 873
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
hosts allow = 192.168.131.0/24
[wwwroot]
path = /var/www/html
comment = Document Root of www.qz.com
read only = yes
dont comperss = *.gz *.bz2 *.tgz *.zip *.rar *.z
auth users = qz
secrets file = /etc/rsyncd_users.db

问题所在
账户数据文件与配置文件里的路径不符

[root@rsync html]# cat /etc/user.db 
qz:5514
secrets file = /etc/rsyncd_users.db

修改后即可

[root@client /]# rsync -avz qz@192.168.131.10::wwwroot /qz/
Password: 
receiving incremental file list
./
q.txt

sent 77 bytes  received 164 bytes  160.67 bytes/sec
total size is 14  speedup is 0.06

以上是关于@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at的主要内容,如果未能解决你的问题,请参考以下文章

@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at

@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at

@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at

@ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at

RSYNC @ERROR: AUTH FAILED ON MODULE XXX 解决思路及附录RSYNC常见问题及解决办法

rsync auth failed on module xxx