コスギデンサン >> 情報系メモ >> Subversion

SubversionとViewVCをインストールする : ユーザ設定をする 2016/9

conf.d/subversion.confにAuthzSVNAccessFileの設定を追加する。
<Location /repos>
   DAV svn
   SVNParentPath /path/repos
   SVNAutoversioning on

   AuthType Basic
   AuthName "Subversion repository for Kosugi-Densan."
   AuthUserFile /path/repos/.htpasswd
   Require valid-user

   AuthzSVNAccessFile /path/repos/svnauth
</Location>

svnaccessファイルの設定
# グループ=ユーザ1,ユーザ2,...
super=user1,user2,user3
normal=user11,user12,user13
group3=userA,userB,userC,...
...

# ルートディレクトリ
[/]
# すべてのグループは読み書き権限無し
*=
# superグループは読み書き権限あり
@super=rw
# normalグループは読み権限あり
@normal=r

# repoAリポジトリ内の/branches/dev201609ディレクトリ
[repoA:/branches/dev201609]
# dev1グループは読み書き権限あり
@dev1=rw
# test1グループは読み権限あり
@test1=r

有限会社コスギデンサン