SVN多仓库配置

1.先建仓库

比如网站 有前台 后台 接口 3个目录  CodeAuth不是仓库  是用来配置密码和权限的 怎么建仓库百度一大堆 不讲哦

2.

这里是passwd设置(拷贝任意一个仓库下面的passwd文件到CodeAuth)
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
liu = 123456
feng = 123456
fan = 123456
zhu = 123456
chang = 123456
changyue = 123456789
yue = 123456

3.

这里是组设置以及组的权限(拷贝的authz)
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average

[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin = liu,feng
indexadmin = chang,fan,yue
houadmin = zhu,chang,changyue
apiadmin = zhu 

[index:/]
@admin = rw
@indexadmin = rw


[admin:/]
@admin = rw
@houadmin = rw


[api:/]
@admin = rw
@apiadmin = rw


# [/foo/bar]
# harry = rw
# &joe = r
# * =

# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r

4.配置下各仓库中的svnserve.conf

anon-access = read
auth-access = write
### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = /opt/svn/CodeAuth/passwd
### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file's location is relative to the the
### directory containing this file.  If you don't specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
authz-db = /opt/svn/CodeAuth/authz(这个就是说权限由CodeAuth/authz决定了)

 ...一会补充

转载于:https://www.cnblogs.com/cbywan/p/8543868.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值