免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3701 | 回复: 8
打印 上一主题 下一主题

rsync 问题 ? 找不到密码文件! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-05 08:44 |只看该作者 |倒序浏览
为什么我的RSYNC老是提示我密码文件不对呢  我已经指上了,
/usr/bin/rsync -vzrtopg --delete  --progress  backup@192
.168.10.55::www  /backup/www/  --password-file=/root/rsyncd.secrets
运行上面的 就报以下错误:
@ERROR: auth failed on module www
rsync: connection unexpectedly closed (87 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

我的密码文件 的属性是对的 是600啊  但就是找不到密码啊,如果去掉--password-file=/root/rsyncd.secrets  这一段  它就提示我输入密码  ,我输了之后就可以同步,但加上就出问题 这是怎么回事啊  怎么解决啊  我rsyncd.conf 内容是:
uid = nobody
gid = nobody
use chroot = no
max connections = 4
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[www]
path = /root/linux/
ignore errors
read only = true
list = false
hosts allow = 192.168.10.100
hosts deny = 0.0.0.0/32
auth users = backup
secrets file=/root/rsyncd.secrets

论坛徽章:
0
2 [报告]
发表于 2006-07-05 09:37 |只看该作者

回复 1楼 lcw410 的帖子

确定你的/root/rsyncd.secrets密码格式是否正确,是否有空格等,/root/rsyncd.secrets文件内容为xxxxxxxxxx

论坛徽章:
0
3 [报告]
发表于 2006-07-05 09:43 |只看该作者
我看了啊  没有啊空格啊 ??


  1. 2006/07/05 09:46:25 [3835] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors
  2. 2006/07/05 09:46:25 [3835] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors
  3. 2006/07/05 09:46:25 [3835] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors
  4. 2006/07/05 09:46:35 [3835] name lookup failed for 192.168.10.100: Name or service not known
  5. 2006/07/05 09:46:35 [3835] auth failed on module www from unknown (192.168.10.100)
  6. 2006/07/05 09:48:36 [3836] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors
  7. 2006/07/05 09:48:36 [3836] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors
  8. 2006/07/05 09:48:36 [3836] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors
  9. 2006/07/05 09:48:46 [3836] name lookup failed for 192.168.10.100: Name or service not known
  10. 2006/07/05 09:48:46 [3836] auth failed on module www from unknown (192.168.10.100)
复制代码

[ 本帖最后由 lcw410 于 2006-7-5 09:55 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-07-05 10:20 |只看该作者
密码文件不要放在/root

论坛徽章:
0
5 [报告]
发表于 2006-07-05 11:01 |只看该作者
看一下密码文件的权限。

论坛徽章:
0
6 [报告]
发表于 2006-07-05 11:02 |只看该作者
你的密码文件权限是否为600

论坛徽章:
0
7 [报告]
发表于 2006-07-05 12:02 |只看该作者
权限没有错啊
[root@linuxoracle root]# ls -l

-rw-------    1 root     root           14 Jul  5 09:39 rsyncd.secrets

论坛徽章:
0
8 [报告]
发表于 2006-07-06 08:42 |只看该作者
各位兄弟 帮帮忙!!!

论坛徽章:
1
金牛座
日期:2014-09-22 22:59:14
9 [报告]
发表于 2006-09-09 22:11 |只看该作者
哎呀....就这个问题..我也郁闷了一天...后经我多方测试...终于闹明白啦...给兄弟们说下注意事项,少走弯路:
1 密码文件不要多多余字符...  (这点相信大家一般不会出错)
2 服务端跟客户端的密码文件权限都要是0600
3 客户端跟服务端密码文件不一样非要一样..(这也是最重要的一点..)
    就是说服务端的内容可写为 username:password
             客户端的内容只写为 password
这样即可...


希望能帮上你们噢...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP