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

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

  • 3
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值