怎样设置svn中不同文件夹的权限
2009-08-28 15:47
246 查看
本文引自http://www.subversion.org.cn/bbs/viewthread.php?tid=857
关于项目中多个模块(文件夹)的权限管理问题
各位高手请帮小妹解决一下以下问题,谢谢!
公司叫我配置SVN服务器,我是按照项目建库的,现在以一个项目为例向大家说明一下:
我把项目1分为了几个文件夹:Trunk、tags、test、testobject、doc等,我在项目1的的根目录conf里设置权限,但是为了保密,给别的部门测试时是不能叫测试人员访问全部项目的,只能由他们访问testobject去下载测试程序,但是如果不给测试人员在项目1中分配权限,他将无法访问任何一个文件夹。
请问如果设置用户在一个库里访问不同文件夹的权限。
单独的svn服务中是无法实现的
可以通过apache + svn的部署方式利用apache来对访问区域进行控制,达到你说的那种设置用户在一个库里访问不同文件夹的权限。
建议你采用apache+svn+svnmanager的部署方式使用
楼上的,为什么单独的svn不能实现呢?
apache仅仅是个web服务器吧
回答楼主问:
我认为直接配置svnserve就行
配置那个authz
[groups]
g_vip = morson
g_manager = michael
g_beijing = scofield
g_shanghai = lincon
g_headquarters = rory, linda
g_docs = linda
[arm:/]
@g_manager = rw
* = r
[arm:/diary/headquarters]
@g_manager = rw
@g_headquarters = rw
@g_vip = r
* =
[arm:/diary/beijing]
@g_manager = rw
@g_beijing = rw
@g_vip = r
* =
[arm:/diary/shanghai]
@g_manager = rw
@g_shanghai = rw
@g_vip = r
* =
[arm:/ref]
@g_manager = rw
@g_docs = rw
* = r
[arm:/temp]
* = rw
上面是我从csdn中copy过来的,他的够复杂了,你可以参考一下。
没什么太复杂的:)
如果用svnadmin create了
你就需要把改每个repos里边的server.conf指向同一个passwdfile和accessfile
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit http://subversion.tigris.org/ for more information.
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
# 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 conf directory.
### Uncomment the line below to use the default password file.
# password-db = 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 conf
### directory. 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 = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa. The default realm
### is repository's uuid.
# realm = My First Repository
serverconf文件里的
那样老累的
我采用的方法就是apache+svn+svnmanager利用crontab周期性同步,如果带宽允许的情况下可以采用调整hooks实时同步版本系统,效果要比svn好不少
怎么说呢,多项目情况下好维护是最好的
关于项目中多个模块(文件夹)的权限管理问题
各位高手请帮小妹解决一下以下问题,谢谢!
公司叫我配置SVN服务器,我是按照项目建库的,现在以一个项目为例向大家说明一下:
我把项目1分为了几个文件夹:Trunk、tags、test、testobject、doc等,我在项目1的的根目录conf里设置权限,但是为了保密,给别的部门测试时是不能叫测试人员访问全部项目的,只能由他们访问testobject去下载测试程序,但是如果不给测试人员在项目1中分配权限,他将无法访问任何一个文件夹。
请问如果设置用户在一个库里访问不同文件夹的权限。
单独的svn服务中是无法实现的
可以通过apache + svn的部署方式利用apache来对访问区域进行控制,达到你说的那种设置用户在一个库里访问不同文件夹的权限。
建议你采用apache+svn+svnmanager的部署方式使用
楼上的,为什么单独的svn不能实现呢?
apache仅仅是个web服务器吧
回答楼主问:
我认为直接配置svnserve就行
配置那个authz
[groups]
g_vip = morson
g_manager = michael
g_beijing = scofield
g_shanghai = lincon
g_headquarters = rory, linda
g_docs = linda
[arm:/]
@g_manager = rw
* = r
[arm:/diary/headquarters]
@g_manager = rw
@g_headquarters = rw
@g_vip = r
* =
[arm:/diary/beijing]
@g_manager = rw
@g_beijing = rw
@g_vip = r
* =
[arm:/diary/shanghai]
@g_manager = rw
@g_shanghai = rw
@g_vip = r
* =
[arm:/ref]
@g_manager = rw
@g_docs = rw
* = r
[arm:/temp]
* = rw
上面是我从csdn中copy过来的,他的够复杂了,你可以参考一下。
没什么太复杂的:)
如果用svnadmin create了
你就需要把改每个repos里边的server.conf指向同一个passwdfile和accessfile
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit http://subversion.tigris.org/ for more information.
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
# 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 conf directory.
### Uncomment the line below to use the default password file.
# password-db = 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 conf
### directory. 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 = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa. The default realm
### is repository's uuid.
# realm = My First Repository
serverconf文件里的
那样老累的
我采用的方法就是apache+svn+svnmanager利用crontab周期性同步,如果带宽允许的情况下可以采用调整hooks实时同步版本系统,效果要比svn好不少
怎么说呢,多项目情况下好维护是最好的
相关文章推荐
- svn不同文件夹设置不同权限
- CKFinder根据用户设置权限,不同用户有自己的私有的、独立的文件夹
- SVN权限设置两种方法有什么不同?
- 怎样用vb设置文件夹权限?解决办法
- XP设置不同用户对硬盘和文件夹的访问权限
- SVN单独用户具有某个文件夹的单独权限设置
- 配置共享文件夹--不同文件夹设置不同访问权限
- linux 批量设置文件夹755 文件644权限
- Win2003共享文件夹权限设置以及如何不需要密码访问共享文件?
- 微软ASP.NET站点部署指南(6):设置文件夹权限
- 微软ASP.NET站点部署指南(6):设置文件夹权限
- SVN服务端权限的设置
- Linux批量修改设置文件/文件夹权限
- 设置SVN忽略文件和目录(文件夹)
- 设置SVN忽略文件和目录(文件夹)
- mkdir中设置文件夹访问权限不起作用
- win2008如何用命令设置文件夹权限
- 设置SVN忽略文件和文件夹(文件夹)
- apache环境下禁止某文件夹内运行PHP脚本、禁止访问文件或目录执行权限的设置方法
- 演示:理解并配置不同权限的用户、设置时间(NTP服务)