其中svn-auth-file是認證檔案,儲存使用者名稱和密碼,svn-access-file是存取權限檔案,規定各個目錄的訪問者的許可權, 樣本的許可權分配的檔案的格式如下。
[groups]
admin = john, kate
devteam1 = john, rachel, sally
devteam2 = kate, peter, mark
docs = bob, jane, mike
training = zak
# Default access rule for ALL repositories
# Everyone can read, admins can write, Dan German is excluded.
[/]
* = r
@admin = rw
dangerman =
# Allow developers complete access to their project repos
[proj1:/]
@devteam1 = rw
[proj2:/]
@devteam2 = rw
[bigproj:/]
@devteam1 = rw
@devteam2 = rw
trevor = rw
# Give the doc people write access to all the docs folders
[/trunk/doc]
@docs = rw
# Give trainees write access in the training repository only
[TrainingRepos:/]
@training = rw
許可權設定檔中,關鍵的幾個概念是:目標和許可權,也就是為誰分配什麼樣的許可權。讀為r,寫為w,如果沒有許可權那麼什麼也不寫即可。