svn精细配置各个目录的权限

如图,这里我建的项目库为BHPP,其下边又有两个文件夹BHPPB和BHPPH,在BHPPB下又有9个文件,现在要分别对每个文件进行svn权限配置。 要求:

    admin管理员对所有的文件都有读写权利; assembly文件夹对zs有读写权利,其他人只能读; bcommon文件夹对ls有读写权利,其他人只能读; ...... rsserver文件对cyq有读写权利,其他人只能读; hy和wz只有读的权利,不能写。 关于项目上传这里不做介绍。 svnserver.conf中主要放开对以下的注释,注意每行左边没有空格。
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz

passwd,创建用户及密码

[users]

admin=admin
zs=zs
li=li
cyq=cyq
cxx=cxx
lh=lh
mg=mg
hy=hy
wz=wz

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]

[/]
# 表示admin有读写的权限
admin=rw
# *=r表示其他人只能读
*=r 
# 此处注意是/BHPP/BHPPB,和创建的文件结构对应,如果不对应会造成只有根目录中
# 的配置有效,其他的提示权限不够的错误
[/BHPP/BHPPB]
admin=rw
*=r

[/BHPP/BHPPH]
admin=rw
*=r

[/BHPP/BHPPB/frame]
admin=rw
ls=rw
*=r

[/BHPP/BHPPB/docmngt]
admin=rw
ls=rw
*=r

[/BHPP/BHPPB/fwebcommon]
admin=rw
ls=rw
*=r

[/BHPP/BHPPB/bcommon]
admin=rw
ls=rw
*=r

[/BHPP/BHPP/BHPPB/rsserver]
admin=rw
cyq=rw
*=r

[/BHPP/BHPPB/cmeramngt]
admin=rw
cxx=rw
*=r

[/BHPP/BHPPB/hrmngt]
admin=rw
mg=rw
*=r

[/BHPP/BHPPB/finmngt]
admin=rw
lh=rw
*=r

[/BHPP/BHPPB/assembly]
admin=rw
zs=rw
*=r

无意中发现了一个巨牛的人工智能教程,忍不住分享一下给大家。教程不仅是零基础,通俗易懂,而且非常风趣幽默,像看小说一样!觉得太牛了,所以分享给大家。可以跳转到教程。

经验分享 程序员 微信小程序 职场和发展