启用两个文件
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 directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### 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
### directory containing this file. The specified path may be a
### repository relative URL (^/) or an absolute file:// URL to a text
### file in a Subversion repository. 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
用户管理文件:
按照样例添加四个用户:
[users]
# harry = harryssecret
# sally = sallyssecret
tom = 123456
jerry = 123456
ceshi = 123456
sk=123456
权限设置文件
[/] //为根目录设置权限
@kaifa=rw //组权限
ceshi=r //指定用户权限
sk=r
* =//屏蔽掉非指定用户
效果: