Chinaunix首页 | 论坛 | 博客
  • 博客访问: 454604
  • 博文数量: 481
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 1040
  • 用 户 组: 普通用户
  • 注册时间: 2013-01-06 14:09
文章分类

全部博文(481)

文章存档

2013年(483)

我的朋友

分类: LINUX

2013-02-28 12:48:53

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
阅读(390) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~