@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

上一篇:【Tailwind CSS】在Vue 2.0项目中安装Tailwind


下一篇:tailwindcss官方tailwindui组件库zip