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

全部博文(198)

文章存档

2012年(12)

2011年(39)

2010年(135)

2009年(12)

我的朋友

分类: LINUX

2010-05-30 11:28:50

Subversion 基于APACHE的权限设置(SVNPath):
在/home/svn下面建立了两个版本库:repo 和 foobar

apache的配置文件


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


       
        DAV svn
        SVNPath /home/svn/foobar
        AuthzSVNAccessFile /home/svn/foobar/conf/authz
        AuthType Basic
        AuthName "Repo Foobar"
        AuthUserFile /etc/svn-foobar-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

[/]
@admin = rw

[/abc]
@admin = rw

[/efg]
@admin = r


/home/svn/foobar/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

[/]
@admin = rw
阅读(1166) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~