LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 700|回复: 0

【讨论】solaris 8&freebsd5.3 rsync auth failed,帮我看看配置,谢谢。

[复制链接]
发表于 2005-5-12 21:44:05 | 显示全部楼层 |阅读模式
solaris 8为rsync服务端
vi /etc/rsyncd.conf

[php]
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 = /www/test/upload  
comment = mirror Web site File to  freebsd
ignore errors           
read only = yes        
list = no     
auth users =user
secrets file =/etc/rsyncd.secrets[/php]
vi /etc/rsyncd.secrets
[php]
user:password
[/php]

netstat -an|grep 873
[php]
     *.873                *.*                0      0 24576      0 LISTEN
[/php]

freebsd5.3 client

vi /etc/rsyncd.secrets
[php]
password
[/php]

/usr/local/bin/rsync -vzrtp --progress --delete --password-file=/etc/rsyncd.secrets user@solaris server IP::www /data/www/test/upload

[php]
@ERROR: auth failed on module www
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(365)
[/php]

/etc/rsyncd.secrets 文件属性均为600

solaris服务端安装的是rsync-2.6.4版
freebsd用ports安装的是rsync-2.6.3版
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表