svnserve.conf 中文man頁面
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)