rsync 设置 list no 无效 还是可以显示列表

配置文件
cat > /etc/rsyncd.conf <<EOF
uid = rsync
gid = rsync
use chroot = no
max connections = 500
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsyncd.lock
secrets file = /etc/rsyncd.passwd
hosts allow = 80.16.63.21
hosts deny = 0.0.0.0/0

[host]
comment = backup vhost
path = /data/02
read only = no
list = no
auth users = user
EOF

然后在客户端:
rsync -rv --password-file=/etc/rsync.password user@80.16.63.98::host/80.16.63.21/database
还是可以列出列表

阅读 4k
1 个回答
新手上路,请多包涵

值是true/flase

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进