您的位置:首页 > 其它

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

2009-01-31 13:40 525 查看

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参数
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: