my rsync server is 192.168.0.1 and rsyncd.con is like this
#more /etc/rsyncd.conf
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
[test]
path = /test
comment = test folder
uid = test
ignore errors
read only = false
list = true
auth users = test
strict modes = false
secrets file = /etc/test.scrt
hosts allow = 192.168.0.2
#more /etc/test.scrt
test:test
#ls -l /etc/test.scrt
-rw------- 1 root root 13 Jan 3 14:12 test.scrt
on client machine 192.168.0.2,
#more /etc/test.scrt
test
#ls -l /etc/test.scrt
-rw------- 1 root root 13 Jan 3 14:12 test.scrt
#rsync -avz /home/test/testfile [EMAIL PROTECTED]::test --password-file=/etc/test.scrt
building file list ... done
testfile
wrote 11053 bytes read 93 bytes 7430.67 bytes/sec
total size is 10862 speedup is 0.97
#
when i check whether testfile is copied to rsync server 192.168.0.1 ,there is nothing
in /test directory. and i check /var/log/rsyncd.log file there is a error like follow:
reverse name lookup failed
rsync to test from test@unknown (192.168.0.2)
cannot create .testfile.RyJ2Ow : Permission denied
wrote 73 bytes read 11053 bytes total size 10862
----------------------------------------------
��ӭʹ�� 21CN �����ʼ�ϵͳ http://www.21cn.com
Thank you for using 21cn.com Email system