vi /etc/rsyncd/rsyncd.conf
uid = root
gid = root
use chroot = no
max connections = 15
port = 28000
log file = /var/log/rsyncd.log
lock file = /etc/rsyncd/rsyncd.lock
pid file = /etc/rsyncd/rsyncd.pid
[LOG]
path = /data/logs/
list = yes
read only = yes
auth users = bi
secrets file = /etc/rsyncd/rsyncd.secrets
:wq
启动命令:
rsync --daemon --config=/etc/rsyncd/rsyncd.conf
secrets file 的权限必须是600
客户端连接时制定的password-file 权限也必须是600
阅读(580) | 评论(0) | 转发(0) |