免费注册 查看新帖 |

Chinaunix

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

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: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
3 [报告]
发表于 2006-07-05 12:02 |显示全部楼层
权限没有错啊
[root@linuxoracle root]# ls -l

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

论坛徽章:
0
4 [报告]
发表于 2006-07-06 08:42 |显示全部楼层
各位兄弟 帮帮忙!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP