其他分享
首页 > 其他分享> > @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

作者:互联网

报错

[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

标签:wwwroot,code,qz,rsync,192.168,rsyncd,file,error
来源: https://blog.csdn.net/TaKe___Easy/article/details/117046335