Lemostic
lemostic
采纳率61.5%
2019-01-04 09:37

Rsync同步报错问题@ERROR: auth failed on module rsyncdata

5
已采纳
  1. 服务端 windows(cwRsyncServer_4.1.0_Installer)
  2. 客户端 macOS(系统自带rsync)

服务端配置好之后,客户端开始测试,但是一直会报错,服务端中rsyncd.secrets文件的权限设置了全部权限。以下为服务端rsyncd.conf配置:

use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
uid = 0
gid = 0

# Module definitions
# Remember cygwin naming conventions  cwork becomes cygwincwork
#
#[test]
#path = cygdrivecwork
#read only = false
#transfer logging = yes

[rsyncdata]
path = cygdrive/c/work
read only = true
transfer logging = yes
list = no
hosts allow = *
auth users = SvcCWRSYNC
secrets file = cygdriver/c/rsyncd.secrets

secrets file的文件属性如下:

图片说明

客户端测试命令为:

rsync -avz --progress --delete 192.168.3.199::rsyncdata /Users/root/Documents/temp --password-file=/Users/root/Documents/rsyncd.pas

运行报错,检查了文件权限,登录用户密码,都没有问题,不知道什么情况。

@ERROR: auth failed on module rsyncdata
rsync error: error starting client-server protocol (code 5) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52.200.1/rsync/main.c(1402) [receiver=2.6.9]
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • Lemostic lemostic 2年前

    参考另一位博主的配置步骤已经解决了这个问题rsync配置

    点赞 评论 复制链接分享

相关推荐