rsync auth failed on module xxx

rsync 报错 "auth failed on module xxx", 一般有三种情况造成:

  1. 密码文件格式错误:

服务端密码文件的格式是:

user:password

每个一行

  1. 密码文件权限错误

密码文件的权限应该是600

  1. rsync 配置错误

主要集中在注释这一块, man 5 rsyncd.conf 有两句话:

The file is line-based -- that is, each newline-terminated line represents either a comment, a module name or a paramete 大专栏  rsync auth failed on module xxxr.

Any line beginning with a hash (#) is ignored, as are lines containing only whitespace.

意思就是配置文件是以行为基准的, 每行要么是注释, 模块或参数.

只有 以#开始 的行, 才被认为是注释.

比如配置文件有一句如下:

secrets file /etc/rsyncd.secret #secret

这是, rsyncd 会认为 "/etc/rsyncd.secret #secret" 这个才是密码文件, 所以也会认证失败.

原文地址:https://www.cnblogs.com/lijianming180/p/12288946.html

时间: 2024-08-02 15:55:35

rsync auth failed on module xxx的相关文章

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

使用rsync往服务器上传文件时,client报如下异常: @ERROR: auth failed on module XXX rsync error: error starting client-server protocol (code 5) at main.c(1503) [Receiver=3.0.6] 排查步骤 1 检查server端和client端的用户名和密码确认都无误: 服务器端检查这个/etc/rsync.pass密码文件, 客户端检查--password-file配置的密码文

rsync报错@ERROR: auth failed on module XX

在手动输入/etc/rsync.conf配置文件,rsync --daemon启动后,同步数据发现如下问题: [[email protected] ~]# rsync -avz /tmp/ [email protected]::backup/ --password-file=/etc/rsync.password @ERROR: auth failed on module backup rsync error: error starting client-server protocol (cod

关于npm安装全局模块,require时报Error: Cannot find module 'XXX'的解决办法

系统环境:centos 下午使用npm安装"cheerio",想搞爬虫玩玩. npm安装有两种模式: 本地 # npm install cheerio 全局 # npm install cheerio -g 如果想要全局安装,你首先要先设置个全局路径 我在"node的安装位置/lib/node_modules/"目录下新建了文件夹node_global专门用来存放新安装的全局包 # npm config set cache "node的安装位置/lib/n

Remote 'attachhome' failed on nodes:XXX

RAC安装过程中,在安装GI的时候报如下错误: 解决方法: 根据提示执行以下脚本 $ /u01/app/11.2.0/grid/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/u01/app/11.2.0/grid ORACLE_HOME_NAME=Ora11g_gridinfrahome1 CLUSTER_NODES=rac11g1,rac11g2 "INVENTORY_LOCATION=/u01/app/oraI

SQL Server "Login failed for user 'xxx\yyy'. [SQLSTATE 28000] (Error 18456). " 问题解决

问题:SQL Server 2014,使用Job定时从Linked Server同步数据,执行时报"Login failed for user '域帐号'. [SQLSTATE 28000] (Error 18456). " 解决:通过配置管理工具修改SQL Server Agent服务启动帐号为域帐号,参见: Login failed for [SQLSTATE 28000] (Error 18456) the step failed SQL Server "Login f

Pylint Error Message: “E1101: Module 'xxx' has no 'xxx' member'”

原因:Pylint默认只信任来自标准库stdlib的C扩展,而忽略其他的.模块'xxx'不是stdlib的一部分,需要手动将其添加到白名单. 解决方案: 在terminal里 (例如Windows 平台的powershell)导航到项目所在目录: 为Pylint生成rcfile文件: 1 pylint --generate-rcfile > .pylintrc 打开生成的文件.pylintrc,将模块名添加至白名单:extension-pkg-whitelist=xxx.以 lxml为例,结果为

【pymongo】连接认证 auth failed解决方法

故事背景: 我在虚拟机(ip:192.168.xx.xx)上建立了一个mongo的数据库,里面已经存好了内容.里面的一个database叫做 "adb", 里面有个collection, 叫做"acol" 我打开了mongo的认证功能,并且把用户"userA"授予了访问"adb"的权限. 然后,我用下面的方式连接 import pymongo host = '192.168.xx.xx' conn = pymongo.Mong

Android Studio 1.X.X - Failed to find XXX:

当在github上看到一个很好的开源库,想集成时,开源库的readme都说让在工程下的build.gradle中的 dependencies 添加类似语句 compile 'com.XXX:XXX:1.0.0' 然后同步,发现报错了 Android Studio 1.X.X - Failed to find XXX: 这是因为你的Android Studio在离线模式,Setting中补选中 Gradle -> Offline work 然后再Sync一下,就发现这个库已经添加到我们的Libra

python出现AttributeError: module ‘xxx’ has no attribute ‘xxx’错误时,两个解决办法

运行python程序时,也许会出现这样的错误:AttributeError: module 'xxx' has no attribute 'xxx': 解决该错误有两种方法 1.手动安装该模块 2.检查文件名 这个方式看起来很傻,但是却是新手经常会犯的错,原因是因为自己的文件名称和要使用的模块重名了,只需要更改文件名即可. 原文地址:https://www.cnblogs.com/lijiejoy/p/9266005.html