Redhat rsync:@错误:模块tomcat_备份的身份验证失败
我就是搞不懂我的RSync怎么了。我正在RHEL5上运行RSync,ip=xx.xx.xx.97。它正在从RHEL5获取文件,ip=xx.xx.xx.96 以下是xx.97(请求文件的日志)上显示的日志(我在RSync命令行中指定): 以下是xx.96(提供文件的那一个)上的日志(在rsyncd.conf文件中指定)显示的内容: 下面是从xx.xx.xx.97(请求者)调用的实际rsync.sh命令: 以下是xx.xx.xx.97上的rsyncd.conf:Redhat rsync:@错误:模块tomcat_备份的身份验证失败,redhat,rsync,Redhat,Rsync,我就是搞不懂我的RSync怎么了。我正在RHEL5上运行RSync,ip=xx.xx.xx.97。它正在从RHEL5获取文件,ip=xx.xx.xx.96 以下是xx.97(请求文件的日志)上显示的日志(我在RSync命令行中指定): 以下是xx.96(提供文件的那一个)上的日志(在rsyncd.conf文件中指定)显示的内容: 下面是从xx.xx.xx.97(请求者)调用的实际rsync.sh命令: 以下是xx.xx.xx.97上的rsyncd.conf: lock file = /var/r
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
[files]
name = tomcat_backup
path = /usr/local/bin/
comment = The copy/backup of tomcat from .96
uid = tomcat
gid = tomcat
read only = no
list = yes
auth users = rsyncclient
secrets file = /etc/rsyncd.secrets
hosts allow = xx.xx.xx.96/255.255.255.0
files:files
以下是xx.xx.xx.97上的rsyncd.secrets:
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
[files]
name = tomcat_backup
path = /usr/local/bin/
comment = The copy/backup of tomcat from .96
uid = tomcat
gid = tomcat
read only = no
list = yes
auth users = rsyncclient
secrets file = /etc/rsyncd.secrets
hosts allow = xx.xx.xx.96/255.255.255.0
files:files
以下是xx.xx.xx.96上的rsyncd.conf(文件供应商):
注意:有一个“cwrsync”(Windows版本的rsync)也成功地调用了文件(xx.xx.xx.100)
注意:是的,xx.96可能会从xx.97请求文件。然而,这并没有真正发生
它被注释出init.d机制
lock file = /var/run/rsync.lock
log file = /var/log/rsync.log
pid file = /var/run/rsync.pid
strict modes = false
[files]
name = tomcat_backup
path = /usr/local/bin
comment = The copy/backup of tomcat from xx.97
uid = tomcat
gid = tomcat
read only = no
list = yes
auth users = rsyncclient
secrets file = /etc/rsyncd.secrets
hosts allow = xx.xx.xx.97/255.255.255.0, xx.xx.xx.100/255.255.255.0
以下是xx.xx.xx.97上的rsyncd.secrets:
files:files
那是另外一回事。我有一个脚本调用rsync命令,这就是问题的根源。实际的rsync命令行是正常的。
抱歉。这就是我遇到这个错误时所经历的。我的第一个想法是检查rsync服务器日志。而且它不在
rsync.conf
中配置的位置。然后我检查了打印在systemctl status rsyncd
rsyncd[23391]: auth failed on module signaling from unknown (172.28.15.10): missing secret for user "rsync_backup"
rsyncd[23394]: Badly formed boolean in configuration file: "no # rsync daemon before transmission, change to the root directory and limited within.".
rsyncd[23394]: params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors # ignore some io error informations.
rsyncd[23394]: Badly formed boolean in configuration file: "false # if true, cannot upload file to this server.".
rsyncd[23394]: Badly formed boolean in configuration file: "false # if true, cannot download file from this server.".
rsyncd[23394]: Badly formed boolean in configuration file: "false # if true, can only list files here.".
结合日志配置不起作用这一事实。rsync.conf中每一行配置之后的注释似乎使配置无效。所以我删除了那些#…
,然后重新启动rsyncd
rsyncd[23391]: auth failed on module signaling from unknown (172.28.15.10): missing secret for user "rsync_backup"
rsyncd[23394]: Badly formed boolean in configuration file: "no # rsync daemon before transmission, change to the root directory and limited within.".
rsyncd[23394]: params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors # ignore some io error informations.
rsyncd[23394]: Badly formed boolean in configuration file: "false # if true, cannot upload file to this server.".
rsyncd[23394]: Badly formed boolean in configuration file: "false # if true, cannot download file from this server.".
rsyncd[23394]: Badly formed boolean in configuration file: "false # if true, can only list files here.".