uid = nobody
gid = nobody
use chroot = no
max connections = 10
strict modes = yes
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[xxwg]
path = /test
comment = xxwg file
ignore errors
read only = no
write only = no
hosts allow = *
hosts deny = 192.168.12.100
list = false
uid = root
gid = root
auth users = backup #注:此账号只是用来传输上的验证,并不需要在系统里新建账号
secrets file = /etc/server.pass
其中,/etc/server.pass内容如下:(server.pass 文件保持属主的600权限)
;backup:123456