数码资讯
svn精细配置各个目录的权限
选购提示
关注价格、性能、续航、售后和真实使用场景,理性比较后再下单。
如图,这里我建的项目库为BHPP,其下边又有两个文件夹BHPPB和BHPPH,在BHPPB下又有9个文件,现在要分别对每个文件进行svn权限配置。
要求:
- admin管理员对所有的文件都有读写权利;
- assembly文件夹对zs有读写权利,其他人只能读;
- bcommon文件夹对ls有读写权利,其他人只能读;
- ……
- rsserver文件对cyq有读写权利,其他人只能读;
- hy和wz只有读的权利,不能写。
关于项目上传这里不做介绍。
svnserver.conf中主要放开对以下的注释,注意每行左边没有空格。
- 1
- 2
passwd,创建用户及密码
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
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
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。