|
|
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版 |
|