Subversion - how do I control user access for single repository when SVNParentPath is used?

后端 未结 1 483
甜味超标
甜味超标 2021-01-21 15:12

I have subversion repositories that are working fine with password authentication required for all users. My config is posted below. How do I go about modifying this configurati

1条回答
  •  离开以前
    2021-01-21 15:28

    I've worked this out myself using the SVN Book.

    First, make sure you have some users setup in the AuthUserFile. Next, create a file for the authorization rules (conf/myteam.authz). Populate this file like this.

    [groups]
    my-developers = BrianLy
    external-developers = JamesKL
    
    [/]
    @my-developers = rw
    
    [repository-name-here:/path/here]
    @external-developers = r
    

    This creates 2 groups which are then assigned rights. My team has developer access to all repositories. The second rule specifies that the second group has limited access to a specific repository.

    Then update your Apache configuration by adding this line below AuthUserFile

    AuthzSVNAccessFile conf/myteam.authz
    

    Re-start Apache (required)

    0 讨论(0)
提交回复
热议问题