NAME
svnserve.conf - snvserve 的仓库配置文件
SYNOPSIS 总览
- repository-path/conf/svnserve.conf
DESCRIPTION 描述
每个代码仓库都有一个 svnserve.conf 文件来控制 svnserve 守护进程的行为。这个文件位于仓库的 conf 子目录。
文件的结构与 Subversion 用户配置文件的结构类似。顶层是段落 (section),以方括号中的词指定;每个段落之中是 ``variable=value'' 形式的变量定义。以 `#' 开头的行被忽略。svnserve.conf 当前只使用一个段落,称为 ``general'',并且支持如下变量:
- anon-access = none|read|write
- 决定非授权用户的访问级别。write 访问允许所有的仓库操作。read 访问允许所有操作,除了提交和修改版本属性。none 不允许任何访问。默认级别是 read。
- auth-access = none|read|write
- 决定授权用户的访问级别,使用与上面相同的访问级别。默认级别是 write。
- password-db = filename
- 设置密码数据库的位置。filename 可能是相对仓库中 conf 目录的位置。没有默认值。密码数据库的格式与本文件相似。它只有一个段落 ``users'';段落中的每个变量是一个用户名,每个值是一个密码。
- realm = realm-name
- 设置仓库的授权域 (realm)。如果两个仓库拥有相同的密码数据库,它们应当在同一个域中,反之亦然;这样的关联可以允许客户端为多个仓库使用单一的密码缓存。默认域的值是仓库的路径,相对于服务器进程的虚根目录。
EXAMPLE 范例
下列范例 svnserve.conf 允许认证用户的读访问,禁止匿名用户的访问,指向相同目录中的密码数据库,定义了一个授权域名。
[general] anon-access = none auth-access = read password-db = passwd realm = My First Repository
``passwd'' 文件可能是这样:
[users] joeuser = joepassword jayrandom = randomjay
SEE ALSO 参见
svnserve(8)
#p#
NAME
svnserve.conf - Repository configuration file for svnserve
SYNOPSIS
- repository-path/conf/svnserve.conf
DESCRIPTION
svnserve.conf controls the behavior of the svnserve daemon on a per-repository basis. It is located in the conf subdirectory of the repository.
The overall structure of the file is the same as the structure of Subversion user configuration files. At the top level are sections, which are specified by words in square brackets; inside each section are variable definitions of the form "variable = value". Lines beginning with '#' are ignored. svnserve.conf currently uses only one section named "general", and supports the following variables:
- anon-access = none|read|write
- Determines the access level for unauthenticated users. write access allows all repository operations. read access allows all operations except committing and changing revision properties. none access allows no access. The default level is read.
- auth-access = none|read|write
- Determines the access level for authenticated users, using the same access levels as above. The default level is write.
- password-db = filename
- Sets the location of the password database. filename may be relative to the repository conf directory. There is no default value. The password database has the same overall format as this file. It uses only one section "users"; each variable within the section is a username, and each value is a password.
- realm = realm-name
- Sets the authentication realm of the repository. If two repositories have the same password database, they should have the same realm, and vice versa; this association allows clients to use a single cached password for several repositories. The default realm value is the repository's uuid.
EXAMPLE
The following example svnserve.conf allows read access for authenticated users, no access for anonymous users, points to a passwd database in the same directory, and defines a realm name.
[general] anon-access = none auth-access = read password-db = passwd realm = My First Repository
The file "passwd" would look like:
[users] joeuser = joepassword jayrandom = randomjay
SEE ALSO
svnserve(8)