proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« apache 的性能优化 | Main | find 和 exec xargs »

July 11, 2005

rsync 单模块认证配置 /etc/rsyncd.conf

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2005/07/11/000714.html http://windtear.net/archives/2005/07/11/000714.html

下面这个配置 rsync 不需要认证
upload 需要认证

rsync upload@upload.ipcn.org::upload
属于密码获得根目录列表
rsync -auvP --progress ./tobe.upload.txt upload@upload.ipcn.org::upload/images/
把本地文件传过去


/etc/rsyncd.conf 配置:

uid = ipcn
gid = ipcn
max connections = 200
timeout = 600
use chroot = no
read only = yes
pid file=/var/run/rsyncd.pid
hosts allow=192.168.0.0/16
syslog facility = local7

[rsync]
        path=/ipcn/rsync/
        comment =/rsync

[upload]
        comment = upload
        path = /ipcn/upload/
        use chroot = yes
        max connections = 20
        read only = false
        list = true
        uid = root
        gid = root
        auth users = upload
        secrets file = /etc/rsyncd.conf.secrets
本blog WWW

Posted by windtear at July 11, 2005 7:38 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.