Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > Java > SVN快速上手(二)权限分配,控制到每个目录
【标  题】:SVN快速上手(二)权限分配,控制到每个目录
【关键字】:SVN
【来  源】:http://www.blogjava.net/vip01/archive/2007/04/12/110138.html

SVN快速上手(二)权限分配,控制到每个目录

Your Ad Here SVN快速上手(二)权限分配,控制到每个目录 - 交口称赞 - BlogJava

交口称赞

会用--实用--易用

SVN快速上手(二)权限分配,控制到每个目录

修改I:\svnroot\conf下面的三个文件

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, to a group of users defined in a special [groups]
### section, or to anyone using the '*' wildcard.? Each definition can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').

[groups]
admin =hermit
user = bob
test = test

[/]
@admin = rw

[/LMS]
@user = rw

[/TEST]
@user = rw
@test = rw




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]
hermit = z
bob = bob
test = tes


svnserve.conf文件:
### 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 = none
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


经过上面的配置
我们可以做到:
根目录不能随便浏览。
admin组里面的人可以控制全部文件
user组里面的人可以控制LMS和TEST下的全部文件,除LMS和TEST及其子目录以外不能看到其它目录
test组里面的人只能控制TEST下的全部文件

如果想让大家都能看到全部文件可以这样修改
[/]
@admin = rw
* = r

启动eclipse连接。
如果要切换账号,可以在服务器端把密码改了,然后eclipse就会重新提示你输入账号密码。

posted on 2007-04-12 12:54 交口称赞 阅读(85) 评论(0)  编辑 收藏 引用 所属分类: Java教程与下载

【相关评论】
没有相关评论
【发表评论】
姓名:
邮件:
随机码*
评论*
      
|  首 页  |  版权声明  |  联系我们   |  网站地图  |
CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.