rsync复制验证用户密码

回复 收藏
[root@sheng ~]# rsync -avzLP --port 8730 test@192.168.107.131::test ./test/
Password:
@ERROR: auth failed on module test
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]

如上,远程复制显示密码错误,密码的文件确实没问题,结果发现修改密码文件的权限就可以,不解
[root@localhost ~]# ll /etc/rsyncd.passwd
-rw-r--r-- 1 root root 12 Aug 31 07:47 /etc/rsyncd.passwd
默认权限时,密码错误
[root@localhost ~]# chmod 600 !$
chmod 600 /etc/rsyncd.passwd
修改成600后就可以
[root@localhost ~]# ll /etc/rsyncd.passwd
-rw------- 1 root root 12 Aug 31 07:47 /etc/rsyncd.passwd
将644权限修改为600权限就可以,求解
2015-08-31 23:03 举报
已邀请:
0

阿铭 管理员

赞同来自:

密码文件是不允许其他人看到的,所以必须要设置为600或者700
0

放牛

赞同来自:

阿铭 发表于 2015-9-1 22:13
密码文件是不允许其他人看到的,所以必须要设置为600或者700

这个是rsync规定的吗?
0

kuruite

赞同来自:

http://debris.blog.51cto.com/1614432/1683627  可以参考看下我做的 rsync+inotify实现实时同步
0

阿铭 管理员

赞同来自:

放牛 发表于 2015-9-2 06:42
这个是rsync规定的吗?

是的。

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: