svnserve.conf 中文man頁(yè)面
NAME
svnserve.conf - snvserve 的倉(cāng)庫(kù)配置文件
SYNOPSIS 總覽
- repository-path/conf/svnserve.conf
DESCRIPTION 描述
每個(gè)代碼倉(cāng)庫(kù)都有一個(gè) svnserve.conf 文件來控制 svnserve 守護(hù)進(jìn)程的行為。這個(gè)文件位于倉(cāng)庫(kù)的 conf 子目錄。
文件的結(jié)構(gòu)與 Subversion 用戶配置文件的結(jié)構(gòu)類似。頂層是段落 (section),以方括號(hào)中的詞指定;每個(gè)段落之中是 ``variable=value'' 形式的變量定義。以 `#' 開頭的行被忽略。svnserve.conf 當(dāng)前只使用一個(gè)段落,稱為 ``general'',并且支持如下變量:
- anon-access = none|read|write
- 決定非授權(quán)用戶的訪問級(jí)別。write 訪問允許所有的倉(cāng)庫(kù)操作。read 訪問允許所有操作,除了提交和修改版本屬性。none 不允許任何訪問。默認(rèn)級(jí)別是 read。
- auth-access = none|read|write
- 決定授權(quán)用戶的訪問級(jí)別,使用與上面相同的訪問級(jí)別。默認(rèn)級(jí)別是 write。
- password-db = filename
- 設(shè)置密碼數(shù)據(jù)庫(kù)的位置。filename 可能是相對(duì)倉(cāng)庫(kù)中 conf 目錄的位置。沒有默認(rèn)值。密碼數(shù)據(jù)庫(kù)的格式與本文件相似。它只有一個(gè)段落 ``users'';段落中的每個(gè)變量是一個(gè)用戶名,每個(gè)值是一個(gè)密碼。
- realm = realm-name
- 設(shè)置倉(cāng)庫(kù)的授權(quán)域 (realm)。如果兩個(gè)倉(cāng)庫(kù)擁有相同的密碼數(shù)據(jù)庫(kù),它們應(yīng)當(dāng)在同一個(gè)域中,反之亦然;這樣的關(guān)聯(lián)可以允許客戶端為多個(gè)倉(cāng)庫(kù)使用單一的密碼緩存。默認(rèn)域的值是倉(cāng)庫(kù)的路徑,相對(duì)于服務(wù)器進(jìn)程的虛根目錄。
EXAMPLE 范例
下列范例 svnserve.conf 允許認(rèn)證用戶的讀訪問,禁止匿名用戶的訪問,指向相同目錄中的密碼數(shù)據(jù)庫(kù),定義了一個(gè)授權(quán)域名。
[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)