解决rsync 同步auth failed on module问题
今天在同步备份文件时遇到一个情况,以前正常的备份,在昨天突然同步备份文件失败了。于是开始检查原因。。。。。
报错日志/var/log/rsyncd.log发现错误
2014/07/02 21:18:16 [9374] auth failed on module backup_www from UNKNOWN (10.0.203.208): unauthorized user 2014/07/02 21:18:23 [9375] name lookup failed for 10.0.203.208: Name or service not known 2014/07/02 21:18:23 [9375] connect from UNKNOWN (10.0.203.208)
1.最开始想到是不是有谁动过rsync的主配置文件和用户认证文件发现一切正常
[backup_www] path = /backup_www_dir/ read only = no list = no auth users = web_rsync secrets file = /etc/rsyncd.secrets
2.又想到是否是权限问题(服务端权限为600)客户端权限也正常
[root@localhost /]# ll /etc/rsyncd.secrets -rw------- 1 root root 474 Jul 2 21:29 /etc/rsyncd.secrets
3.最后检查密码文件及密码是否正确,都确认没的问题
4.最后发现我们另一个同事在rsync主配置文件中多写了一条和backup_www相同的模块,只是用户和path不同
[backup_www] path = /backup_new_dir/ read only = no list = no auth users = www_rsync secrets file = /etc/rsyncd.secrets
PS:当主配置文件有过多的模块时,需要确保模块名是唯一的。
另:如果模块相同还会出现这种情况
rsync: mkstemp ".hosts.FtFzWd" (in www) failed: Permission denied (13)
转载于:https://www.cnblogs.com/LD-linux/p/3822162.html
解决rsync 同步auth failed on module问题相关推荐
- Rsync: @ERROR: Auth Failed On Module XXX错误原因及解决办法
rsync 提示错误@ERROR: auth failed on module XXX,原因是认证失败,提示这个错误证明你的 rsync 服务已经正确运行了,但是账号或密码有问题.解决方法如下: 一. ...
- @ERROR: auth failed on module wwwroot rsync error: error starting client-server protocol (code 5) at
@ERROR: auth failed on module wwwroot 问题 解决办法 问题 @ERROR: auth failed on module wwwroot rsync error: ...
- 在Windows中配置Rsync同步
在Windows中配置Rsync同步 Rsync是一款不错的文件免费同步软件,可以镜像保存整个目录树和文件系统,同时保持原来文件的权限.时间.软硬链接.第一次同步时 rsync 会复制全部内容,下次只 ...
- rsync同步远程主机目录,并通过md5校验目录
一 rsync rsync全称remote sync,是一种更高效.可以本地或远程同步的命令,之所以高效是因为rsync会对需要同步的源和目的进度行对比,只同步有改变的部分,所以比scp命令更高 ...
- rsync同步时出现rsync: failed to set times on “xxxx”: Operation not permitted
今天在同步数据的时候提示rsync: failed to set times on "xxxx": Operation not permitted,一般来说要不是服务器时间不对或者 ...
- 解决 rsync: failed to connect to xxx.xxx.xxx.85 (xxx.xxx.xxx.85): No route to host (113) 问题
如果我们在使用 rsync 同步服务器之间文件时报如下错误: rsync: failed to connect to xxx.xxx.xxx.85 (xxx.xxx.xxx.85): No route ...
- 【pymongo】连接认证 auth failed解决方法
[pymongo]连接认证 auth failed解决方法 参考文章: (1)[pymongo]连接认证 auth failed解决方法 (2)https://www.cnblogs.com/dple ...
- 解决 Rsync chown/chgrp 错误
如果你用Rsync同步时遇到类似以下的错误 rsync: chown "/path/" failed: Invalid argument (22) rsync: chgrp &qu ...
- rsync同步Nginx日志遇到问题总结
一.目的 将nginx 日志通过普通用户利用rsync公钥认证的方式实时同步到本地服务器上,之后使用elk程序进行处理. 二.遇到问题及解决方法思路 问题1.文件权限:nginx 的日志默认权限如下: ...
最新文章
- python 守护线程 join_Python多线程threading join和守护线程setDeamon原理详解
- 鸟哥的linux 实训教程,鸟哥的Linux基础学习实训教程
- 手动添加linux用户,Linux入门教程:如何手动创建一个Linux用户
- secureCRT按回车键全屏的解决方法
- 分布式消息中间件-Rocketmq
- filter in Fiori HANA live report
- shopify二次开发教程_详细教程:如何将Shopify的Storefront API与React和Redux结合使用...
- Entity Framework 6 Code First的简单使用和更新数据库结构
- 让LYNC 2010 登录OCS 2007 R2
- 【转】接口测试面试题
- 开关电源/LDO反馈电阻辅助计算工具PowerHelper使用介绍
- 40个Qt学习小案例
- linux超级块编辑,在EXT4 linux系统上模拟丢失的超级块错误
- 太容易的钱,最让人心慌
- 简述MFC程序生与死
- 压力变送器matlab,总结压差变送器三种不同故障以及处理方法[理论结合实际]
- css动漫效果库,10 个最佳 CSS 动画库
- 解决Pymongo If you meant to call the ‘insert_one‘ method on a ‘Database‘ object it is failing
- bzoj-1227 虔诚的墓主人
- ABAQUS怎样导出部分节点的编号