rsyncd - 认证相关参数配置说明

 

rsyncd - 认证相关参数配置说明

# 本文件的默认位置是/etc/rsyncd.conf
# GLOBAL PARAMETERS
motd file = /var/rsync/welcome.msg
pid file = /var/run/rsyncd.pid
# DEFAULT MODULE PARAMETERS
use chroot = no
max connections = 20
log file = /var/log/rsyncd.log
lock file = /var/run/rsync.lock
uid = nobody
gid = nobody
# MODULE PARAMETERS
[module]
comment = module comment
path = /path/to/module/
read only = yes
list = no
# auth users
# This parameter specifies a comma and space-separated list of usernames that will be allowed to connect to this module. The usernames do not need to exist on the local system. The usernames may also contain shell wildcard characters. If "auth users" is set then the client will be challenged to supply a username and password to connect to the module. A challenge response authentication protocol is used for this exchange. The plain text usernames and passwords are stored in the file specified by the "secrets file" parameter. The default is for all users to be able to connect without a password (this is called "anonymous rsync").
# 该参数指定一个使用逗号和空格分隔的允许连接到该模块的用户名列表。用户名不必存在于本地系统中。用户名也可以包含命令行通配符。当设置“auth users”时客户端将被要求提供连接该模块的用户名和密码。使用一个要求响应认证协议来交换。文本格式的用户名和密码保存在由“secrets file”参数指定的文件中。默认情况允许所有用户不需要密码就能连接(被称为“匿名rsync”)。
auth users = module_user
# secrets file
# This parameter specifies the name of a file that contains the username:password pairs used for authenticating this module. This file is only consulted if the "auth  users" parameter is specified. The file is line based and contains username:password pairs separated by a single colon. Any line starting with a hash (#) is considered a comment and is skipped. The passwords can contain any characters but be warned that many operating systems limit the length of passwords that can be typed at the client end, so you may find that passwords longer than 8 characters don't work.
# 该参数指定一个包含 用户名:密码 对的文件用于该模块的认证。仅在指定“auth users”参数时使用。文件基于行包含由一个单冒号分隔的 用户名:密码 对。任何由#号开头的行都被视为注释而被忽略。密码可以包含任何字符但是一些客户端的操作系统限制可以输入的密码长度而发出警告,可能发现长度超过八个字 符的密码不能工作。
# 例如 /etc/rsyncd.secrets 的内容如下:
# module_user:password
secrets file = /etc/rsyncd.secrets
hosts allow = 192.168.1.2
ignore errors

[rsync - 官方网站]

http://rsync.samba.org/

[rsync - 关键词]

rsync
rsyncd

[rsync - 相关问题]

全局部分中常用全局参数配置说明

全局部分中常用模块参数配置说明

模块常用配置说明

认证相关参数配置说明

客户端常用参数

客户端其他参数

 

for Windows (cygwin)

远程shell模式和rsync守护进程模式

22.6. File Synchronization. Building Internet Firewalls, 2nd Edition

Hack 92 Mirroring Web Sites with wget and rsync. Spidering Hacks

Linux Security Cookbook - Recipe 1.16 Integrity Checking with rsync

Linux Security Cookbook - Recipe 1.6 Remote Integrity Checking

Linux Security Cookbook - Recipe 6.3 Copying Files Remotely

正确设置gid参数

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值