svn 配置多个仓库和权限控制
来源:互联网 发布:藏剑二少捏脸数据下载 编辑:程序博客网 时间:2024/05/22 06:52
在前面的文章中,Shop是一个仓库,如果同时开发多个项目,就要建立多个仓库,同时进行多个项目监管
svnserve只可以监管一个文件夹,不可以监管多个仓库。
可以通过监管总目录来达到监管所有仓库的目的
比如Shop仓库的总目录是 WebApp
切换到WebApp目录,执行
svnserve -d -r ./即可
这样我们就可以通过svn://localhost访问WebApp了
如果要访问Shop目录,就是svn://localhost/Shop
但是如果更改了localhost的指向,那么之前靠这个指向的检出目录就会无法连接了
权限控制
仓库资源文件下
conf文件夹里面
authz文件 授权文件 告诉那些用户具有那些权限
passwd文件 认证文件 标志某个仓库具有那些用户和相应的密码
svnserve.con 核心配置文件
anon-access = write
auth-access = write
第一个是匿名权限
第二个是认证权限
password-db = passwd
authz-db = authz
去掉注释
,这样就开启了授权文件和认证文件
接着编写认证文件passwd,定义相关用户名和密码
### 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#定义用户admin和huang密码分别是admin和1995admin = admin huang = 1995
然后编辑authz文件
### This file is an example authorization file for svnserve.### Its format is identical to that of mod_authz_svn authorization### files.### As shown below each section defines authorizations for the path and### (optional) repository specified by the section name.### The authorizations follow. An authorization line can refer to:### - a single user,### - a group of users defined in a special [groups] section,### - an alias defined in a special [aliases] section,### - all authenticated users, using the '$authenticated' token,### - only anonymous users, using the '$anonymous' token,### - anyone, using the '*' wildcard.###### A match can be inverted by prefixing the rule with '~'. Rules can### grant read ('r') access, read-write ('rw') access, or no access### ('').[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 = admin kaifa = huang,admin# [/foo/bar]# harry = rw# &joe = r# * =# [repository:/baz/fuz]# @harry_and_sally = rw# * = r[Shop:/]@admin = rw #admin组有读写权限@check = r #check组有读权限* = r #其他只有读权限
0 0
- svn 配置多个仓库和权限控制
- svn多层路径仓库的权限配置
- linux服务器上配置多个svn仓库
- svn配置多仓库统一管理
- 最新Subversion(SVN)权限控制配置详解
- 关于svn权限控制的配置
- CVS 多仓库 多权限控制
- ubuntu下svn创建多个仓库
- 配置多个git仓库
- maven 配置多个仓库
- svn仓库基本配置
- SVN精细权限控制
- svn 目录权限控制
- svn权限控制
- SVN服务端在Linux环境下的安装和配置(多仓库)
- 本地配置多个Git仓库
- 如何配置svn中的权限,用户组权限和用户名
- 建立多人协作git仓库/git 仓库权限控制(SSH)
- POJ2039:反反复复
- 0005 键盘打字如何练成像黑客一样的飞速
- return,return false,return true
- 2015年9月到2017年3月研究生回顾
- Qt5 中国象棋悔棋操作
- svn 配置多个仓库和权限控制
- jQuery
- 多态 -重写/覆盖(Override) -重载(Overload)
- 1120. Friend Numbers (20)
- Java Socket通信及心跳包
- 第一篇博客
- 数组显示方法
- 指针和常量 c
- 树链剖分模板 Query on a Tree