Chinaunix首页 | 论坛 | 博客
  • 博客访问: 642738
  • 博文数量: 198
  • 博客积分: 4256
  • 博客等级: 上校
  • 技术积分: 1725
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-15 13:12
文章分类

全部博文(198)

文章存档

2012年(12)

2011年(39)

2010年(135)

2009年(12)

我的朋友

分类: LINUX

2010-05-30 11:58:25

Subversion 基于APACHE的权限设置(SVNParentPath):

在/home/svn下面建立了两个版本库:repo 和 foobar

apache的配置文件



       
        DAV svn
        SVNParentPath /home/svn
        AuthzSVNAccessFile /home/svn/repo/conf/authz
        #SVNListParentPath on
        AuthType Basic
        AuthName "Repo Auth"
        AuthUserFile /etc/svn-aut-file
        Require valid-user
       



        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined



AuthzSVNAccessFile指定的权限配置文件:
/home/svn/repo/conf/authz


[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average

[groups]
admin = jack,annie

[repo:/]
@admin = rw

[repo:/abc]
@admin = rw

[repo:/efg]
@admin = r

[foobar:/]
@admin = rw

使用 SVNParentPath 代替 SVNPath 来指定多个版本库
、需要在定义版本库以及子目录的时候必须指定版本库的名称

阅读(2588) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~