SVN基于目录的ACL权限配置

这是我机器内自带的sample
我修改了一下用来说明问题

### 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]
beijin = ihipop
shanghai = heiher,ihipop
japan= bubuto

[/ppt/dox]
bubuto=rw
# &joe = r
*=
#不使用版本库来进行目录限制,而只是用路径来匹配
[repository:/]
@beijin = rw
bubuto = r
* = ''
#@开头那行表示repository仓库只允许北京组别的人读写,其他人无权读写
#@ 表示接下来的是一个组名,不是用户名
#接下来一行赋予bubuto读权限

[repository:/doc]
@shanghai = rw
bubuto = rw
* = r
#权限的继承性体现。上层根目录对于其他用户是无权读写的
#bubuto对上层目录也没有写权限,但是这层有
#其他用户变成只读了
#如果最后一行注释,其他用户就会继承根目录的权限,即无法浏览

中文路径支持
满足如下条件后svn可以正常处理中文
authz等配置文件必须是 UTF-8 无 BOM

Author Info :
  • From:SVN基于目录的ACL权限配置
  • URL:https://blog.ihipop.com/2010/12/1892.html
  • Please Reserve This Link,Thanks!
  • 发表回复

    您的电子邮箱地址不会被公开。 必填项已用*标注